function doOpen2()
{
 var height;
 var width;
 var statusbar;
 var s = "https://www.lsn.com.au/scripts/cgiclnt.dll/LSN/ND000_?EWF_SYS_0=e95654f1-2565-11d4-8fa4-00b0d0302a92&EWF_FORM_NAME=0001081&EWF_BUTTON_Submit=Submit";

 if ((screen.availHeight <= 600) || (screen.availWidth <= 800)) {
   statusbar = 0;
   if(screen.availHeight > 600){
     height = 600;
   }
   else{
     height = screen.availHeight - 28;
   }
   if(screen.availWidth > 800){
     width = 800;
   }
   else{
     width = screen.availWidth - 10;
   }
 }
 else {
   statusbar = 1;
   height = 600;
   width = 800;
 }

 if (navigator.appName=="Netscape"){
  if (statusbar){
   window.open(s, "LSN", "toolbar=no,status=yes,location=no,menubar=no,directories=no,scrollbars=yes,resizable=no,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
  }
  else{
   window.open(s, "LSN", "toolbar=no,status=no,location=no,menubar=no,directories=no,scrollbars=yes,resizable=no,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
  }
 }
 else{
  if (statusbar){
   window.open(s, "LSN", "toolbar=no,status=yes,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
  }
  else{
   window.open(s, "LSN", "toolbar=no,status=no,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
  }
 }
}


function checkguide(which) {

   if (which.realname.value.length<2) {
      alert('Please enter your Name');
      return false;
   }
   if (which.email.value.length<5) {
      alert('Please enter your Email');
      return false;
   }
   if ((which.selling.checked == false) && (which.propman.checked == false)) {
      alert('Please select a Guide');
      return false;
   }
   return(true);

}

function checkcontact(which) {

   if (which.realname.value.length<2) {
      alert('Please enter your Name');
      return false;
   }
   if (which.email.value.length<5) {
      alert('Please enter your Email');
      return false;
   }
   if ((which.phone_home.value.length<2) && (which.phone_work.value.length<2) && (which.mobile.value.length<2)) {
      alert('Please enter a contact phone number');
      return false;
   }
   return(true);

}

function checkrepair(which) {

   if (which.realname.value.length<2) {
      alert('Please enter the tenant name(s)');
      return false;
   }
   if (which.property.value.length<2) {
      alert('Please enter the property address');
      return false;
   }
   if (which.work.value.length<2) {
      alert('Please enter the repair details');
      return false;
   }
   if (which.access.value.length<2) {
      alert('Please enter the access details');
      return false;
   }
   return(true);
}

function checkappraisal(which) {

   if (which.realname.value.length<2) {
      alert('Please enter your Name');
      return false;
   }
   if (which.email.value.length<2) {
      alert('Please enter your Email');
      return false;
   }
   if ((which.Phone_Home.value.length<2) && (which.Phone_Work.value.length<2) && (which.Mobile.value.length<2)) {
      alert('Please enter a contact phone number');
      return false;
   }
   if (which.Address.value.length<2) {
      alert('Please enter the Address');
      return false;
   }
   return(true);
}

function OpenPrivacyfs() {
        url='/cgi-bin/clients/randw/privacyfs.cgi?groupid=$groupid';
        myWind = window.open(url,'PrivacyStatement','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=300')
        myWind.creator = window
        myWind.document.close()
   }


