	<!--
	
	function openWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 

	function MM_displayStatusMsg(msgStr)  { //v3.0
		status=msgStr; document.MM_returnValue = true;
	}
	
	function MM_findObj(n, d) { //v3.0
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
	}
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_preloadImages() { //v3.0
	 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function chkPhone(phonenumber)
	{
		var checkOK = "0123456789()- ";
		var checkStr=phonenumber;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++) {
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
					break;
					if (j == checkOK.length) {
						allValid = false;
						break;
					}
		}
				
				if (!allValid) {
					return (false);
				}	
	}
	function chkAlphabets(alphabets)
	{
		var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
		var checkStr=alphabets;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++) {
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
					break;
					if (j == checkOK.length) {
						allValid = false;
						break;
					}
		}
				
				if (!allValid) {
					return (false);
				}	
	}
	function chkEmail(email)
	{
		var checkEmail = "@.";
		var checkStr = email;
		var EmailValid = false;
		var EmailAt = false;
		var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
		if (ch == checkEmail.charAt(j) && ch == "@")
		EmailAt = true;
		if (ch == checkEmail.charAt(j) && ch == ".")
		EmailPeriod = true;
			  if (EmailAt && EmailPeriod)
				break;
			  if (j == checkEmail.length)
				break;
		}
			
		if (EmailAt && EmailPeriod)
		{
				EmailValid = true
				break;
			}
		}
		if (!EmailValid)
		{
			return (false);
		}
	}


	function isValidDate(dateStr)
	{
		var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/;
	
		var matchArray = dateStr.match(datePat); 
		if (matchArray == null)
		 {
			alert("Date is not in a valid format.")
			return false;
	     }
		month = matchArray[1]; 
		day = matchArray[3];
		year = matchArray[4];
		if (month < 1 || month > 12) 
		{
			alert("Month must be between 1 and 12.");
			return false;
		}
		if (day < 1 || day > 31)
		{
			alert("Day must be between 1 and 31.");
			return false;
		}
		if ((month==4 || month==6 || month==9 || month==11) && day==31)
		{
			alert("Month "+month+" doesn't have 31 days!")
			return false;
		}
		if (month == 2)
		{ 
			var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
			if (day>29 || (day==29 && !isleap))
			{
				alert("February " + year + " doesn't have " + day + " days!");
				return false;
			}
		}
	 
	}	
	
	//	The "refresh" function implementations are identical
	//	to our regular "JavaScript-Refresh" example.  The only
	//	difference from our JavaScript Refresh example is 
	//	we do not have a doLoad function that starts our
	//	refresh timer (since we use a refresh button).
	
	var sURL = unescape(window.location.pathname);
	
	function refresh()
	{
		window.location.href = sURL;
	}

	function winback()
	{
		window.history.back(-1);
	}
	
	function productoffer(t)
	{
		if(formProduct.sListingType[0].checked==false && formProduct.sListingType[1].checked==false && formProduct.sProduct[0].checked==false && formProduct.sProduct[1].checked==false && formProduct.sProduct[2].checked==false)
		{
			alert("Please choose at least one product before clicking the 'Next' button");
			formProduct.sListingType[1].focus();
			return(false);
		}
		
		if(formProduct.sListingType[0].checked==true)
		{
		 if(formProduct.sProduct[0].checked==true || formProduct.sProduct[1].checked==true || formProduct.sProduct[2].checked==true)
			{
				var answer = confirm("You have chosen a Basic Listing.\n\nIf you upgrade to a Full Listing with logo you will recieve a 20% discount on your other purchase.\n\nIf you would like to upgrade to a Full Listing click 'Cancel' and change your selection.\nAlternatively, if you do not wish to take advantage of this offer click 'OK'.");
				if (!answer) { return false; }
				formProduct.sListingType[1].focus();
			}
		}

		if(formProduct.sListingType[1].checked==true)
		{
		 if(formProduct.sProduct[0].checked==false && formProduct.sProduct[1].checked==false && formProduct.sProduct[2].checked==false)
			{
				var answer = confirm("You have chosen a Full Listing will logo.\n\nThis entitles you to recieve a 20% discount on any of our other products.\n\nIf you would like to purchase any of our other products click 'Cancel' to return to the order form.\nAlternatively, if you do not wish to take advantage of this offer click 'OK'.");
				if (!answer) { return false; }				
				formProduct.sProduct[0].focus();
			}
		}
		
	}
	
	function chkPhone(phonenumber)
	{
		var checkOK = "0123456789()- ";
		var checkStr=phonenumber;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++) {
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
					break;
					if (j == checkOK.length) {
						allValid = false;
						break;
					}
		}
				
				if (!allValid) {
					return (false);
				}	
	}
	
	
	function chkfreePhone(phonenumber)
	{
		var checkOK = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()- ";
		var checkStr=phonenumber;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++) {
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
					break;
					if (j == checkOK.length) {
						allValid = false;
						break;
					}
		}
				
				if (!allValid) {
					return (false);
				}	
	}
	
	
	function chkAlphabets(alphabets)
	{
		var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
		var checkStr=alphabets;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++) {
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
					break;
					if (j == checkOK.length) {
						allValid = false;
						break;
					}
		}
				
				if (!allValid) {
					return (false);
				}	
	}
	function chkEmail(email)
	{
		var checkEmail = "@.";
		var checkStr = email;
		var EmailValid = false;
		var EmailAt = false;
		var EmailPeriod = false;
		for (i = 0;  i < checkStr.length;  i++)
		{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
		if (ch == checkEmail.charAt(j) && ch == "@")
		EmailAt = true;
		if (ch == checkEmail.charAt(j) && ch == ".")
		EmailPeriod = true;
			  if (EmailAt && EmailPeriod)
				break;
			  if (j == checkEmail.length)
				break;
		}
			
		if (EmailAt && EmailPeriod)
		{
				EmailValid = true
				break;
			}
		}
		if (!EmailValid)
		{
			return (false);
		}
	}


function isValidDate(dateStr)
{
	var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{2}|\d{4})$/;

	var matchArray = dateStr.match(datePat); 
	if (matchArray == null)
	 {
		alert("Date is not in a valid format.")
		return false;
     }
	month = matchArray[1]; 
	day = matchArray[3];
	year = matchArray[4];
	if (month < 1 || month > 12) 
	{
		alert("Month must be between 1 and 12.");
		return false;
	}
	if (day < 1 || day > 31)
	{
		alert("Day must be between 1 and 31.");
		return false;
	}
	if ((month==4 || month==6 || month==9 || month==11) && day==31)
	{
		alert("Month "+month+" doesn't have 31 days!")
		return false;
	}
	if (month == 2)
	{ 
		var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
		if (day>29 || (day==29 && !isleap))
		{
			alert("February " + year + " doesn't have " + day + " days!");
			return false;
		}
	}
 
}	


	function validatestep3(t)
	{
		/*
		if(frmCompany.sTradingName.value=="")
		{
			alert("Please enter your trading name");
			frmCompany.sTradingName.focus();
			return(false);
		}
		*/
		if(frmCompany.sCompanyName.value=="")
		{
			alert("Please enter your company name");
			frmCompany.sCompanyName.focus();
			return(false);
		}
		if(frmCompany.nBusCategory.value=="0")
		{
			alert("Please select the business category");
			frmCompany.nBusCategory.focus();
			return(false);
		}
		if(frmCompany.nBusSubCategory.value=="")
		{
			alert("Please select the business sub category");
			frmCompany.nBusSubCategory.focus()
			return(false);
		}
		if(frmCompany.sPhone.value=="")
		{
			alert("Please enter your phone number");
			frmCompany.sPhone.focus();
			return(false);
		}
		var p;
		p=chkPhone(frmCompany.sPhone.value);
		if(p==false)
		{
			alert("Please enter phone number as '09 1234567'");
			frmCompany.sPhone.focus();
			return(false);
		}
		if(frmCompany.sFax.value=="")
		{
			alert("Please enter your fax number");
			frmCompany.sFax.focus();
			return(false);
		}
		var p;
		p=chkPhone(frmCompany.sFax.value);
		if(p==false)
		{
			alert("Please enter your fax number as '09 1234567'");
			frmCompany.sFax.focus();
			return(false);
		}
		/*
		if(frmCompany.sLevel.value=="")
		{
			alert("Please enter the level of your company address");
			frmCompany.sLevel.focus();
			return(false);
		}
		if(frmCompany.sBuilding.value=="")
		{
			alert("Please enter the building name");
			frmCompany.sBuilding.focus();
			return(false);
		}
		*/
		if(frmCompany.sStreetNumber.value=="")
		{
			alert("Please enter the street number");
			frmCompany.sStreetNumber.focus();
			return(false);
		}
		if(frmCompany.sStreetname.value=="")
		{
			alert("Please enter the street name");
			frmCompany.sStreetname.focus();
			return(false);
		}
		/*
		if(frmCompany.sSuburb.value=="")
		{
			alert("Please enter the suburb name");
			frmCompany.sSuburb.focus();
			return(false);
		}
		*/
		if(frmCompany.sCity.value=="")
		{
			alert("Please enter the city name");
			frmCompany.sCity.focus();
			return(false);
		}
		if(frmCompany.sDescription.value=="")
		{
			alert("Please enter your business description");
			frmCompany.sDescription.focus();
			return(false);
		}
		var p;
		p=chkfreePhone(frmCompany.sFreePhone.value);
		if(p==false)
		{
			alert("Please enter your free phone number as '09 1234567'");
			frmCompany.sFreePhone.focus();
			return(false);
		}
		var p;
		p=chkPhone(frmCompany.sFreeFax.value);
		if(p==false)
		{
			alert("Please enter your free fax number as '09 1234567'");
			frmCompany.sFreePhone.focus();
			return(false);
		}
		
		if(frmCompany.sCoyEmail.value!="")
		{
			var coyemail;
			coyemail=chkEmail(frmCompany.sCoyEmail.value);
			if(coyemail==false)
			{
				alert("Please enter your company e-mail in a valid format");
				frmCompany.sCoyEmail.focus();
				return(false);
			}
		}
		
		if(frmCompany.sUserFirstName.value=="")
		{
			alert("Please enter the authorised person first name")
			frmCompany.sUserFirstName.focus();
			return(false);
		}
		if(frmCompany.sUserLastName.value=="")
		{
			alert("Please enter the authorised person last name");
			frmCompany.sUserLastName.focus();
			return(false);
		}
		if(frmCompany.sUserTitle.value=="")
		{
			alert("Please enter the authorised person title");
			frmCompany.sUserTitle.focus();
			return(false);
		}
		if(frmCompany.sUserEmail.value=="")
		{
			alert("Please enter the authorised person e-mail");
			frmCompany.sUserEmail.focus();
			return(false);
		}
		var e
		e=chkEmail(frmCompany.sUserEmail.value);
		if(e==false)
		{
			alert("Please enter a valid authorised person e-mail");
			frmCompany.sUserEmail.focus();
			return(false);
		}
		if(frmCompany.sUserPhone.value=="")
		{
			alert("Please enter the authorised person phone number");
			frmCompany.sUserPhone.focus();
			return(false);
		}
		var p;
		p=chkPhone(frmCompany.sUserPhone.value);
		if(p==false)
		{
			alert("Please enter the authorised person phone number as '09 1234567'")
			frmCompany.sUserPhone.focus();
			return(false);
		}
		if(frmCompany.sUserPwd.value=="")
		{
			alert("Please enter a password");
			frmCompany.sUserPwd.focus();
			return(false);
		}
		if(frmCompany.sUserPwd2.value=="")
		{
			alert("Please confirm the password");
			frmCompany.sUserPwd2.focus();
			return(false);
		}
		if(frmCompany.sUserPwd.value!=frmCompany.sUserPwd2.value)
		{
			alert("The password and the confirm password needs to be the same");
			frmCompany.sUserPwd2.focus();
			return(false);
		}
		
	}


	//-->	
				
				
				