/*
  <!--- FUSEDOC
  		||
        RESPONSIBILITIES: validates variable carrier infomation entry to ensure not blank, no text,and correct format.
        ||
		END FUSEDOC --->
*/

/*<!----------------------------------------------------------------------		
	Modification History:
	Date		Developer		Note
	-----------------------------------------------
	10/27/2006	PhilS			Added Captcha.
	
------------------------------------------------------------------------> */

//<script type="text/javascript" language="JavaScript">

	function new_window(url)
	{
	link = window.open(url,"Link","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=400,height=450,left=380,top=180");
	}				
	
	function Validate(fm)
	{
		var fileNo = fm.authNo.value;
		
		if ( (fm.authNo.value != "") && (fm.carrierName.value != "") )
		{
			alert("Enter Account No. or Carrier Name, not both.");
			fm.authNo.focus();
			return false;					
		}
		
		if ( (fm.authNo.value == "") && (fm.carrierName.value == "") )
		{
			alert("Please enter an Account No. or a Carrier Name.");
			fm.authNo.focus();
			return false;					
		}
		//  Added for Captcha. (PhilS)
		/*if (document.form1.theWord.value.length < 1) {
			document.form1.theWord.focus();
			document.form1.theWord.select();
			alert("You must enter the characters in the box provided.");
			return false;
		}*/
		
		return true;
	}

//</script>