// JavaScript Document
function regvalidation()
{
	var err="";
	if(isWhitespace(document.form1.login.value,true))
			{
			 err+="\nUser Id should not be blank";
			 document.form1.login.focus();
			}
	if(isWhitespace(document.form1.email.value,true))
			{
			 err+="\nEmail should not be blank";
			 document.form1.email.focus();
			}
	if(document.form1.processor.selectedIndex==0)
			{
			 err+="\nPayment getway should be mentioned";
			 document.form1.processor.focus();
			}
	if(document.form1.country.selectedIndex==0)
			{
			 err+="\nCountry should be mentioned";
			 document.form1.country.focus();
			}
	if(isWhitespace(document.form1.lracc.value,true))
			{
			 err+="\nLR Account No. should not be blank";
			 document.form1.lracc.focus();
			}
	if(!isEmail(document.form1.email.value))
	{
		err+="\nPlease enter a valid email";
		document.form1.email.focus();
	}
	if(isAlphanumeric(document.form1.pass.value,false)==false)
	{
		err+="\npassword must must be alpha-numeric";
	}
	
	if(!document.form1.pass.value.match(/[A-Z]/))
	{
		err+="\npassword must have a uppercase letter";
	}
	else if(!document.form1.pass.value.match(/[1-9]/))
	{
		err+="\nPassword must have one number";
	}
	if(err!="")
	{
	err+="\n\n===============================";
	err+="\nPlease Fill the Fields above";
	err+="\n=================================";
	alert(err);
	return false;
	}
}


function displayfaq(val)
{
	if(val=="")
	{
		window.location="faq.php";
	}else
	{
		window.location="faq.php?nofaq="+val;
	}
}
function displaynews(val)
{
	if(val=="")
	{
		window.location="news.php";
	}else
	{
		window.location="news.php?nonews="+val;
	}
}
