function chkfrm()
{
	var flag=1;
   if(document.frmcomp.txtcomp.value=="Enter company name" || document.frmcomp.txtcomp.value=='')
	{
	   alert("Please Enter Company Name.");
        document.frmcomp.txtcomp.focus();
		return false;
	}
 if(document.frmcomp.txtcomp.value!="" && document.frmcomp.txtcomp.value!="Enter company name"  )
	{
		var iChars = "*=#%+";

    for (var i = 0; i < 3; i++)
	
	  {
  	   if (iChars.indexOf(document.frmcomp.txtcomp.value.charAt(i)) != -1) 
	
	    {
       	alert ("Invalid company name.Sorry you can not use * = # % + in the first 3 characters.");
       	document.frmcomp.txtcomp.focus();
      	return false;
      	
  	    }
	
	 }
		}	
	document.frmcomp.action="http://yourlimitedcompany.co.uk/submit_company.php?pkg=<?=$_REQUEST['pkg']?> &txtcomp="+document.frmcomp.txtcomp.value;
	document.frmcomp.submit();
	
	return true;
}
function chkfrm1()
{
   if(document.frmlogin.txtemail.value=="" )
	{
	   alert("Please enter Email address.");
        document.frmlogin.txtemail.focus();
		return false;
	}

    if (document.frmlogin.txtemail.value.indexOf("@") < 0)
		{
			alert("Incorrect email address. Please re-enter.");
			document.frmlogin.txtemail.focus();
			return false;
		}
		// txtemail Checker
		if (document.frmlogin.txtemail.value.indexOf(".") < 0)
		{
			alert("Incorrect email address. Please re-enter.");
			document.frmlogin.txtemail.focus();
			return false;
		}

		// txtemail Checker
		if (document.frmlogin.txtemail.value.indexOf(" ") >= 0)
		{
			alert("Incorrect email address. Please re-enter.");
			document.frmlogin.txtemail.focus();
			return false;
		}



	if(document.frmlogin.txtpass.value=="" )
	{
	   alert("Please enter Password.");
        document.frmlogin.txtpass.focus();
		return false;
	}
	return true;
}

