var osname = Ti.Platform.osname;
// Booleans identifying the platforms are handy too
var isAndroid = (osname == 'android') ? true : false;
if (isAndroid) {
	// do Android specific stuff
	$.textField.backgroundColor="#DCDCDC";
	$.textField1.backgroundColor="#DCDCDC";
	$.textField.color="black";
	$.textField1.color="black";
	Ti.API.info("Platform is Android");
} else {
	// do iOS, mobileweb, or other platform stuff
	Ti.API.info("Platform is iOS");
}

function doClick(e) {
	Ti.API.info("Get Project Button was clicked");
	var user = $.textField.value;
	var pass = $.textField1.value;
	//Ti.API.info(user);
	if (user == 'a' && pass == '1') {
		var win2 = Alloy.createController('bluewin').getView();
		//$.win1.openWindow(win2);
		win2.open();
	} else {
		alert('Insert valid user and password');
		$.textField.value = '';
		$.textField1.value = '';
	}

}

$.win1.open();

@@ -605,16 +605,292 @@
 r);%0A%09if 
+((user === ' ') %7C%7C (user.length == 0)) %7B%0A%09%09alert('Please Enter Username');%0A%09%7D else if ((pass.value === ' ') %7C%7C (pass.length == 0)) %7B%0A%09%09alert('Please Enter Password');%0A%09%7D else %7B%0A%09%09//transmit(e);%0A%09%09var win2 = Alloy.createController('bluewin').getView();%0A%09%09win2.open();%0A%09%7D%0A%09/*if 
 (user ==
@@ -1122,16 +1122,18 @@
 = '';%0A%09%7D
+*/
 %0A%0A%7D%0A%0A$.w

Update index.js