function ValidateForm(){
	var Msg = "";
	if (document.form_login.form_user.value == ""){
		Msg += "   User name\n"; 
	}
	
	if (document.form_login.form_password.value == ""){
		Msg += "   Password\n"; 
	}
	
	if (Msg == ''){
		return(true);
	}
	Msg = "You need to Fill in the Following Fields:\n" + Msg;
	alert(Msg);
	return(false);
}

function CheckBrowser(){

	var Pass = false;
	
	//alert(navigator.appVersion);
	
	//UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
		var ffversion=new Number(RegExp.$1); // capture x.x portion and store as a number
		if (ffversion>=2){
			//alert("You're using FF 2.x or above");
			Pass = true;
		}else{
			Pass = false;
		}
	}
	
	//UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
		var ieversion=new Number(RegExp.$1); // capture x.x portion and store as a number
		if (ieversion>=7){
			//alert("You're using IE7.x + ");
			Pass = true;
		}else{
			Pass = false;
		}
	}
	
	if (Pass  == false){
		alert("The Self Serve Portal requires Internet Explorer 7 or Firefox v2\n\nPlease update your browser before continuing");
	}
}
