function chkSubsForm(objForm)
{
//alert("dfg");
	
	var theMessage	= "You entered incorrectly or forgot to fill in ::\n";
	var noErrors	= theMessage;
	var focusval	= objForm.usr_name;
	var dt			= new Date();
	
	if(objForm.usr_name)
	{
		if(objForm.usr_name.value=='')
		{
			theMessage+= "\nPlease enter Name";
			focusval = objForm.usr_name;
		}
	
	}

	if(objForm.usr_email)
	{
		if (trimAll(objForm.usr_email.value).length<=0) 
		{
			theMessage+="\nPlesae enter your email" ;
			focusval = objForm.usr_email;
		} else if (!isValidEmail(trimAll(objForm.usr_email.value)))
		{	
			theMessage+= "\nPlesae enter valid email id" ;
			focusval = objForm.usr_email;
		}
	}

if (theMessage == noErrors)
	{
		return true;
	} 
	else
	{
		alert(theMessage);
		focusval.focus();

		return false;
	}



}


function isValidEmail(sFieldValue)
{
	var REmail=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

	var str=sFieldValue;
	if(!str.match(REmail)){
		return false;
	}
	else
	{
		return true;
	}
}

function trimAll(str){
	var l=0;
	var r=str.length;
	while((ch=str.charAt(l++)) == ' ');
	while((ch=str.charAt(--r)) == ' ');
	return(0>r)?"":str.substring(l-1,r+1);
}


function popup1(){
window.open('ads/banner0.jpg','window_name','width=120,height=600,scrollbar=1');
}
function popup2(){
window.open('ads/banner1.jpg','window_name','width=125,height=125,scrollbar=1');
}
function popup3(){
window.open('ads/banner2.jpg','window_name','width=160,height=600,scrollbar=1');
}
function popup4(){
window.open('ads/banner3.jpg','window_name','width=200,height=200,scrollbar=1');
}
function popup5(){
window.open('ads/banner4.jpg','window_namer','width=234,height=60,scrollbar=1');
}
function popup6(){
window.open('ads/banner5.jpg','window_name','width=300,height=250,scrollbar=1');
}
function popup7(){
window.open('ads/banner6.jpg','window_name','width=468,height=60,scrollbar=1');
}
function popup8(){
window.open('ads/banner7.jpg','window_name','width=728,height=90,scrollbar=1');
}