function validatesocial(){

if(document.social.plan.selectedIndex==0)
    {
    alert("Please select an Plan.");
    document.social.plan.focus();
    return false;
    }

/*
		if(document.social.companyname.value=="")
	{
		alert("Please Enter Company Name!");
		document.social.companyname.focus();
		return false;
	}
*/
	if(document.social.contactname.value=="")
	{
		alert("Please Enter Contact Name!");
		document.social.contactname.focus();
		return false;
	}
	
		if(document.social.contactemail.value=="")
	{
		alert("Please Enter Your Email!");
		document.social.contactemail.focus();
		return false;
	}
	var str=document.social.contactemail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	{
	}
	else
	{
	alert("Please input a valid email address!");
	document.social.contactemail.focus();
	return false;
	}
    //var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
	var urlRegxp = /^(ftp|http|https)?(:\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;


		if ((document.social.url.value=="") || (document.social.url.value=="http://") || (urlRegxp.test(document.social.url.value) != true ))
		{
			   
			alert("Website URL Cannot Be Left Blank!");
			document.social.url.focus();
			return false;
		}
	if(document.social.title1.value=="")
	{
		alert("Please Enter Title1!");
		document.social.title1.focus();
		return false;
	}
	/*
	if(document.social.title2.value=="")
	{
		alert("Please Enter Title2!");
		document.social.title2.focus();
		return false;
	}
		if(document.social.title3.value=="")
	{
		alert("Please Enter Title3!");
		document.social.title3.focus();
		return false;
	}
	*/
		if(document.social.keywords1.value=="")
	{
		alert("Please Enter  keyword1!");
		document.social.keywords1.focus();
		return false;
	}
	/*
		if(document.social.keywords2.value=="")
	{
		alert("Please Enter  keyword2!");
		document.social.keywords2.focus();
		return false;
	}
		if(document.social.keywords3.value=="")
	{
		alert("Please Enter keyword3!");
		document.social.keywords3.focus();
		return false;
	}
	*/
		if(document.social.desc1.value=="")
	{
		alert("Please Enter Description1!");
		document.social.desc1.focus();
		return false;
	}
	/*
		if(document.social.desc2.value=="")
	{
		alert("Please Enter  Description2!");
		document.social.desc2.focus();
		return false;
	}
		if(document.social.desc3.value=="")
	{
		alert("Please Enter Description3!");
		document.social.desc3.focus();
		return false;
	}
	*/
	if(document.social.security_code.value=="")
	{
		alert("Please Enter Security Code!");
		document.social.security_code.focus();
		return false;
	}
	else{
		return true;
	}

}




function validatedirectory(){

if(document.directory.plan.selectedIndex==0)
    {
    alert("Please select an Plan.");
    document.directory.plan.focus();
    return false;
    }

/*
	if(document.directory.companyname.value=="")
	{
		alert("Please Enter Company Name!");
		document.directory.companyname.focus();
		return false;
	}
*/
	if(document.directory.contactname.value=="")
	{
		alert("Please Enter Contact Name!");
		document.directory.contactname.focus();
		return false;
	}
	
		if(document.directory.contactemail.value=="")
	{
		alert("Please Enter Your Email!");
		document.directory.contactemail.focus();
		return false;
	}
	var str=document.directory.contactemail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	{
	}
	else
	{
	alert("Please input a valid email address!");
	document.directory.contactemail.focus();
	return false;
	}
/*
	if(document.directory.name.value=="")
	{
		alert("Please Enter Name!");
		document.directory.name.focus();
		return false;
	}
*/
	//var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
	var urlRegxp = /^(ftp|http|https)?(:\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
		if ((document.directory.url.value=="") || (document.directory.url.value=="http://") || (urlRegxp.test(document.directory.url.value) != true ))
		{
			   
			alert("Website URL Cannot Be Left Blank!");
			document.directory.url.focus();
			return false;
		}
		/*
		if(document.directory.name.value=="")
	{
		alert("Please Enter Name!");
		document.directory.name.focus();
		return false;
	}
*/
	if(document.directory.title1.value=="")
	{
		alert("Please Enter Title1!");
		document.directory.title1.focus();
		return false;
	}
	/*
	if(document.directory.title2.value=="")
	{
		alert("Please Enter Title2!");
		document.directory.title2.focus();
		return false;
	}
		if(document.directory.title3.value=="")
	{
		alert("Please Enter Title3!");
		document.directory.title3.focus();
		return false;
	}
	*/
		if(document.directory.desc1.value=="")
	{
		alert("Please Enter Description1!");
		document.directory.desc1.focus();
		return false;
	}
	/*
		if(document.directory.desc2.value=="")
	{
		alert("Please Enter  Description2!");
		document.directory.desc2.focus();
		return false;
	}
		if(document.directory.desc3.value=="")
	{
		alert("Please Enter Description3!");
		document.directory.desc3.focus();
		return false;
	}
		if(document.directory.keywords.value=="")
	{
		alert("Please Enter  keyword!");
		document.directory.keywords.focus();
		return false;
	}
	*/
	if(document.directory.cat1.value=="")
	{
		alert("Please Enter Category1!");
		document.directory.cat1.focus();
		return false;
	}
	/*
		if(document.directory.cat2.value=="")
	{
		alert("Please Enter  Category2!");
		document.directory.cat2.focus();
		return false;
	}
		if(document.directory.cat3.value=="")
	{
		alert("Please Enter Category3!");
		document.directory.cat3.focus();
		return false;
	}
	*/
	if(document.directory.security_code.value=="")
	{
		alert("Please Enter Security Code!");
		document.directory.security_code.focus();
		return false;
	}
	else{
		return true;
	}

}

function validatelinkbuilding(){

	if(document.linkbuilding.plan.selectedIndex==0)
    {
    alert("Please select an Plan.");
    document.linkbuilding.plan.focus();
    return false;
    }
/*
		if(document.linkbuilding.companyname.value=="")
	{
		alert("Please Enter Company Name!");
		document.linkbuilding.companyname.focus();
		return false;
	}
*/
	if(document.linkbuilding.contactname.value=="")
	{
		alert("Please Enter Contact Name!");
		document.linkbuilding.contactname.focus();
		return false;
	}
	
		if(document.linkbuilding.contactemail.value=="")
	{
		alert("Please Enter Your Email!");
		document.linkbuilding.contactemail.focus();
		return false;
	}
	var str=document.linkbuilding.contactemail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	{
	}
	else
	{
	alert("Please input a valid email address!");
	document.linkbuilding.contactemail.focus();
	return false;
	}


	//var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
	var urlRegxp = /^(ftp|http|https)?(:\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
		if ((document.linkbuilding.url.value=="") || (document.linkbuilding.url.value=="http://") || (urlRegxp.test(document.linkbuilding.url.value) != true ))
		{
			   
			alert("Website URL Cannot Be Left Blank!");
			document.linkbuilding.url.focus();
			return false;
		}
		/*
		if(document.linkbuilding.targetmarket.value=="")
	{
		alert("Please Enter Target Market!");
		document.linkbuilding.targetmarket.focus();
		return false;
	}
	
	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.url1.value=="") || (document.linkbuilding.url1.value=="http://") || (urlRegxp.test(document.linkbuilding.url1.value) != true ))
		{
			   
			alert("Website URL1 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.url1.focus();
			return false;
		}
	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.url2.value=="") || (document.linkbuilding.url2.value=="http://") || (urlRegxp.test(document.linkbuilding.url2.value) != true ))
		{
			   
			alert("Website URL2 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.url2.focus();
			return false;
		}

	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.url3.value=="") || (document.linkbuilding.url3.value=="http://") || (urlRegxp.test(document.linkbuilding.url3.value) != true ))
		{
			   
			alert("Website URL3 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.url3.focus();
			return false;
		}

	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.url4.value=="") || (document.linkbuilding.url4.value=="http://") || (urlRegxp.test(document.linkbuilding.url4.value) != true ))
		{
			   
			alert("Website URL4 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.url4.focus();
			return false;
		}

	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.url5.value=="") || (document.linkbuilding.url5.value=="http://") || (urlRegxp.test(document.linkbuilding.url5.value) != true ))
		{
			   
			alert("Website URL5 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.url5.focus();
			return false;
		}


		if(document.linkbuilding.keywordphrase.value=="")
	{
		alert("Please Enter  keyword Phrase!");
		document.linkbuilding.keywordphrase.focus();
		return false;
	}
	
		if(document.linkbuilding.keywordlink.value=="")
	{
		alert("Please Enter keyword link!");
		document.linkbuilding.keywordlink.focus();
		return false;
	}
	

	var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.linkbuilding.siteurllink.value=="") || (document.linkbuilding.siteurllink.value=="http://") || (urlRegxp.test(document.linkbuilding.siteurllink.value) != true ))
		{
			   
			alert("Your Site URL Cannot Be Left Blank! \n It should be http://www.example.com");
			document.linkbuilding.siteurllink.focus();
			return false;
		}
*/
		if(document.linkbuilding.sitetitle.value=="")
	{
		alert("Please Enter site title!");
		document.linkbuilding.sitetitle.focus();
		return false;
	}
		if(document.linkbuilding.sitedesc.value=="")
	{
		alert("Please Enter site Description!");
		document.linkbuilding.sitedesc.focus();
		return false;
	}
	/*
		if(document.linkbuilding.aasi.value=="")
	{
		alert("Please Enter Any Added Special Instruction!");
		document.linkbuilding.aasi.focus();
		return false;
	}
	*/
	if(document.linkbuilding.security_code.value=="")
	{
		alert("Please Enter Security Code!");
		document.linkbuilding.security_code.focus();
		return false;
	}
	
	else{
		return true;
	}

}

function validatearticlesubmissionForm()
{
if(document.article.plan.selectedIndex==0)
    {
    alert("Please select an Plan.");
    document.article.plan.focus();
    return false;
    }
/*

	if(document.article.companyname.value=="")
	{
		alert("Please Enter Company Name!");
		document.article.companyname.focus();
		return false;
	}
*/
	if(document.article.contactname.value=="")
	{
		alert("Please Enter Contact Name!");
		document.article.contactname.focus();
		return false;
	}
	
		if(document.article.contactemail.value=="")
	{
		alert("Please Enter Your Email!");
		document.article.contactemail.focus();
		return false;
	}
	var str=document.article.contactemail.value
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str))
	{
	}
	else
	{
	alert("Please input a valid email address!");
	document.article.contactemail.focus();
	return false;
	}

/*

if(document.getElementById('oneauthorname').value == "")
{ alert("Please enter your Author Name for Author1!"); document.getElementById('oneauthorname').focus(); return false; }
*/ 
if(document.getElementById('onekeywords1').value == "")
{ alert("Please enter your Keyword for Author1!"); document.getElementById('onekeywords1').focus(); return false; }

//var urlRegxp = /^(http:\/\/|www.|https:\/\/|www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
var urlRegxp = /^(ftp|http|https)?(:\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
		if ((document.article.oneWebURL1.value=="") || (document.article.oneWebURL1.value=="http://") || (urlRegxp.test(document.article.oneWebURL1.value) != true ))
		{
			   
			alert("Website URL1 Cannot Be Left Blank!");
			document.article.oneWebURL1.focus();
			return false;
		}

if(document.getElementById('onekeywords2').value == "")
{ alert("Please enter your Keyword  2 for Author1!"); document.getElementById('onekeywords2').focus(); return false; }
 
//var urlRegxp = /^(http:\/\/|www.|https:\/\/|www.|ftp:\/\/|www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
var urlRegxp = /^(ftp|http|https)?(:\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
		if ((document.article.oneWebURL2.value=="") || (document.article.oneWebURL2.value=="http://") || (urlRegxp.test(document.article.oneWebURL2.value) != true ))
		{
			   
			alert("Website URL2 Cannot Be Left Blank!");
			document.article.oneWebURL2.focus();
			return false;
		}
/*

if(document.getElementById('onepenname').value == "")
{ alert("Please enter your Pen Name for Author1!"); document.getElementById('onepenname').focus(); return false; }
 
if(document.getElementById('twoauthorname').value == "")
{ alert("Please enter your Author Name for Author2!"); document.getElementById('twoauthorname').focus(); return false; }
 
if(document.getElementById('twokeywords1').value == "")
{ alert("Please enter your Keyword for Author2!"); document.getElementById('twokeywords1').focus(); return false; }
 
var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.article.twoWebURL1.value=="") || (document.article.twoWebURL1.value=="http://") || (urlRegxp.test(document.article.twoWebURL1.value) != true ))
		{
			   
			alert("Website URL1 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.article.twoWebURL1.focus();
			return false;
		}
 
if(document.getElementById('twokeywords2').value == "")
{ alert("Please enter your Keyword 2 for Author2!"); document.getElementById('twokeywords2').focus(); return false; }

 
var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.article.twoWebURL2.value=="") || (document.article.twoWebURL2.value=="http://") || (urlRegxp.test(document.article.twoWebURL2.value) != true ))
		{
			   
			alert("Website URL2 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.article.twoWebURL2.focus();
			return false;
		}
if(document.getElementById('twopenname').value == "")
{ alert("Please enter your Pen Name for Author2!"); document.getElementById('twopenname').focus(); return false; }

 
if(document.getElementById('threeauthorname').value == "")
{ alert("Please enter your Author Name for Author3!"); document.getElementById('threeauthorname').focus(); return false; }
 
if(document.getElementById('threekeywords1').value == "")
{ alert("Please enter your Keyword for Author3!"); document.getElementById('threekeywords1').focus(); return false; }

var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.article.threeWebURL1.value=="") || (document.article.threeWebURL1.value=="http://") || (urlRegxp.test(document.article.threeWebURL1.value) != true ))
		{
			   
			alert("Website URL1 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.article.threeWebURL1.focus();
			return false;
		}

if(document.getElementById('threekeywords2').value == "")
{ alert("Please enter your Keyword 2 for Author3!"); document.getElementById('threekeywords2').focus(); return false; }
 
var urlRegxp = /^(http:\/\/www.|https:\/\/www.|ftp:\/\/www.|www.){1}([\w]+)(.[\w]+){1,2}$/;
		if ((document.article.threeWebURL2.value=="") || (document.article.threeWebURL2.value=="http://") || (urlRegxp.test(document.article.threeWebURL2.value) != true ))
		{
			   
			alert("Website URL2 Cannot Be Left Blank! \n It should be http://www.example.com");
			document.article.threeWebURL2.focus();
			return false;
		}
if(document.getElementById('threepenname').value == "")
{ alert("Please enter your Pen Name for Author3!"); document.getElementById('threepenname').focus(); return false; }
*/
if(document.article.security_code.value=="")
	{
		alert("Please Enter Security Code!");
		document.social.security_code.focus();
		return false;
	}
 


else{
		return true;
	}


}


