function openWindow(url,name,features) {

	popupWin=window.open(url,name,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerwidth; document.MM_pgH=innerheight; onresize=MM_reloadPage; }}
  else if (innerwidth!=document.MM_pgW || innerheight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


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 MM_findObj(n, d) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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 openWindow(url,name,features) {

	popupWin=window.open(url,name,features);
}

function isValidEmail(thisObj){
	//Email address must be of form a@b.c..in other words:
	//* there must be at least one character before the @
	//* there must be at least one character before and after the .
	//* the characters @ and . are both required
	//
	//there must be >=1 character before @, so we
	//start looking at character position 1
	//(i.e.secont character)
	//////comment this part
	
	var s=thisObj;
	var bo,ba;
	var counter=0;
	bo=false;
	ba=false;
	var slength=s.length;
	for (i=0;i<s.length-1;i++){
		if (s.charAt(i)=="@" && (i!=0)){
			counter++;
			ba=true;
		}
		if ((s.charAt(i)==".") && (s.length-1>=i+1)&&(s.length-1<=i+3)){
			bo=true;
		}	
	}
	if (bo==true && ba==true){

	}else{
		//isValidEmail=false;
		alert('That is not a valid e-mail address');	
		document.frmGuest.email.value = '';
		document.frmGuest.email.focus();

	}
}

function isEmpty(thisObj){	

	
	if(thisObj.value=="")
	{
		return true
	}
	else
	{	
		return false
	}
}

function get_onkeypress(){		
}

function isNS6(){

	if(navigator.appName == "Netscape")
	{
		var VerNum = parseFloat(navigator.appVersion);
		var VerName = navigator.userAgent
		
		//alert("Name : " + navigator.userAgent);
		if(VerName.indexOf("Netscape6/6.2") !=-1)
		{
			//document.write("Version : " + parseFloat(navigator.appVersion));
			//document.write("Got Here !!!");
			//alert(navigator.userAgent);
			location.href="Netscape6_User.htm"
		}
	}
}
 function isValidEmail(){
	//Email address must be of form a@b.c..in other words:
	//* there must be at least one character before the @
	//* there must be at least one character before and after the .
	//* the characters @ and . are both required
	//
	//there must be >=1 character before @, so we
	//start looking at character position 1
	//(i.e.secont character)
	//////comment this part	
	var s=document.enquire.email.value;
	var bo,ba;
	var counter=0;
	bo=false;
	ba=false;
	var slength=s.length;
	for (i=0;i<s.length-1;i++){
		if (s.charAt(i)=="@" && (i!=0)){
			counter++;
			ba=true;
		}
		if ((s.charAt(i)==".") && (s.length-1>=i+1)&&(s.length-1<=i+3)){
			bo=true;
		}	
	}
	if (bo==true && ba==true){
	}else{
		//isValidEmail=false;
		alert('That is not a valid e-mail address');	
		document.enquire.email.value=''
	}
}
function CheckValid(){
	var validmail;		
	if(document.enquire.name.value==""){
		alert('Please enter your Name');
	}else if(document.enquire.postal1.value==""){
		alert('Please enter line 1 of your address');
	}else if(document.enquire.postal2.value==""){
		alert('Please enter line 2 of your address');
	}else if(document.enquire.postal3.value==""){
		alert('Please enter line 3 of your address');
	}else if(document.enquire.phone.value==""){
		alert('Please enter your phone number');
	}else if(document.enquire.email.value==""){
		alert('Please enter your E-mail address');
	}else if(document.enquire.comment.value==""){
		alert('Please enter your enquiry into the box provided');
	}else if(document.enquire.organisation.value==""){
		alert('Please enter the name of your organisation or company');
	}else{
			document.enquire.submit();
	}
}
function submitForm()
		{
			document.pSearch.submit();
		}
	
		function openWindow(url,name,features) 
		{
			popupWin=window.open(url,name,features);
}
function goback()
{
history.go(-1)
}