// JavaScript Document
//Function to validate form fields
<!--
function chk()
{
	if (document.frm.Name.value=="")
	{
		alert("Please Enter the Name.");
		document.frm.Name.focus();
		return false;
	}

	if (document.frm.Address.value=="")
	{
		alert("Please Enter the Address.");
		document.frm.Address.focus();
		return false;
	}
	
	if (document.frm.Tel.value=="")
	{
		alert("Please Enter the Telephone Number.");
		document.frm.Tel.focus();
		return false;
	}
	
	if (document.frm.Email.value=="")
	{
		alert("Please Enter the Email Address.");
		document.frm.Email.focus();
		return false;
	}

	if (document.frm.Email.value!="")
	{
		var i,j,l,m;
		i=document.frm.Email.value;
		j=i.indexOf("@");
		
		if(j<0)
		{
			alert("Email Address In-Correct");
			document.frm.Email.focus();
			return false;
		}
		l=i.substring(j)
		m=l.indexOf(".")
		
		if(m<0)
		{
			alert("Email Address In-Correct")
			document.frm.Email.focus();
			return false;
		}
	}

	if (document.frm.Information.value=="Other")
	{
		if(document.frm.Info_other.value=="")
		{
			alert("Enter other Source of Information");
			document.frm.Info_other.focus();
			return false;
		}
	}
}

//Function to open window
function OpenWin(url,windowname,width,height)
{
 if (!url)
 {
 alert ("Please specify a URL to open");
 return false;
 }
 if (!windowname) windowname = 'newwin';
 if (!width) width = 300;
  var properties = "menubar=no,toolbars=no,directory=no,top=100,scrolling=no,status=yes,scrollbars=yes,resizable=no,maximize=yes,width="+width+",height="+height;
  var newWin = window.open(url,windowname,properties);
  newWin.focus();
}

//-->