function sub_fn()
{
	temp=document.user_fr.user_id.value;
	temp2=document.user_fr.passwd.value;
	if(temp=="")
	{
		window.alert("Username could not be left blank.");
		document.user_fr.user_id.focus();
		return false;
	}
	if(temp2=="")
	{
		window.alert("Password could not be left blank.")
		document.user_fr.passwd.focus();
		return false;
	}
	return true;
}
function focus()
{
		document.user_fr.user_id.focus();
}
function focus_pas()
{
		document.pass_fr.user_id.focus();
}
function checkp_fn()
{
	temp= document.pass_fr.user_id.value;
	if(temp=="")
	{
		window.alert("The Email ID field could not be empty");
		document.pass_fr.user_id.focus();
		return false;
	}
	document.pass_fr.submit();
}
function check_fn()
{
	if(!isabc())
	{
		return false;
	}
	temp4=document.reg_fr.webtitle.value;	
	temp5=document.reg_fr.weburl.value;
	temp6=document.reg_fr.webdesc.value;
	temp8=document.reg_fr.main_category.value;
	temp9=document.reg_fr.recip.value;
	if(temp4=="")
	{
		window.alert("Web Title could not be left blank.")
		document.reg_fr.webtitle.focus();
		return false;
	}
if(temp5=="")
	{
		window.alert("Web URL could not be left blank.");
		document.reg_fr.weburl.focus();
		return false;
	}
	if(!isValidateWebsite())
	{
		return false;
	}
	if(temp6=="")
	{
		window.alert("Web Description could not be left blank.")
		document.reg_fr.webdesc.focus();
		return false;
	}
	if(temp8=="x")
	{
		window.alert("Please select a category.")
		document.reg_fr.main_category.focus();
		return false;
	}
if(temp9=="")
	{
		window.alert("Please enter a reciprocal link.")
		document.reg_fr.recip.focus();
		return false;
	}

	return true;
}
