MidX=screen.availWidth/2
MidY=screen.availHeight/2

function popup (URL,WIDTH,HEIGHT)
{            window.open(URL,'popwin','borderless=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,top='+(MidY-(HEIGHT/2)-30)+',left='+(MidX-(WIDTH/2))+',width='+WIDTH+',height='+HEIGHT+'');}

function popupscroll (URL,WIDTH,HEIGHT)
{            window.open(URL,'popwin','borderless=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,top='+(MidY-(HEIGHT/2)-30)+',left='+(MidX-(WIDTH/2))+',width='+WIDTH+',height='+HEIGHT+'');}

function popupborderless (URL,WIDTH,HEIGHT)
{            window.open(URL,'popwin','borderless=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,top='+(MidY-(HEIGHT/2)-30)+',left='+(MidX-(WIDTH/2))+',width='+WIDTH+',height='+HEIGHT+'');}


myFooterPath = "}imagery/footer/"
myHeaderPath = "}imagery/header/"

function FooterNavOver(o,i) { 
if(i == 1) 
	{i = myFooterPath + "btn_techinfo-o.gif";}
if(i == 2) 
	{i = myFooterPath + "btn_affiliates-o.gif";}
if(i == 3) 
	{i = myFooterPath + "btn_tenders-o.gif";}	
if(i == 4) 
	{i = myFooterPath + "btn_downloads-o.gif";}	
if(i == 5) 
	{i = myFooterPath + "btn_sitemap-o.gif";}	
if(i == 6) 
	{i = myFooterPath + "btn_pilotfish-o.gif";}		
tempPic=o.src
o.src=i; 
}
function FooterNavOut(o){o.src=tempPic;}

function HeaderNavOver(o,i) { 
if(i == 1) 
	{i = myHeaderPath + "btn_landsales-o.jpg";}
if(i == 2) 
	{i = myHeaderPath + "btn_dev-o.jpg";}	
if(i == 3) 
	{i = myHeaderPath + "btn_news-o.jpg";}	
if(i == 4) 
	{i = myHeaderPath + "btn_faq-o.jpg";}	
if(i == 5) 
	{i = myHeaderPath + "btn_gallery-o.jpg";}
if(i == 6) 
	{i = myHeaderPath + "btn_contact-o.jpg";}
if(i == 7) 
	{i = myHeaderPath + "btn_home-o.jpg";}		
tempPic=o.src
o.src=i; 
}
function HeaderNavOut(o){o.src=tempPic;}

function changeval(v,val){
	v.style.color = '#362E1B';
	if (v.value == val){
		v.value= '';	
	}
}
function checkval(v,val){
	if (v.value == ''){
		v.style.color ='';
		v.value=val;
	}
}

function validateForm()
{
	if(InputForm.Name.value == "Name" || InputForm.Name.value == "")
	{
		alert("Please enter your Name");
		InputForm.Name.focus();
		return false;
	}
	
	if(InputForm.Surname.value == "Company" || InputForm.Company.value == "")
	{
		alert("Please enter your Company");
		InputForm.Company.focus();
		return false;
	}
	
	if(InputForm.Contactnum.value == "Contact Number" || InputForm.ContactNumber.value == "")
	{
		alert("Please enter your Contact Number");
		InputForm.ContactNumber.focus();
		return false;
	}
	
	if(InputForm.Organisation.value == "Email Address" || InputForm.EmailAddress.value == "")
	{
		alert("Please enter your Email Address");
		InputForm.Organisation.focus();
		return false;
	}
	
	if(InputForm.Message.value == "Message" || InputForm.Message.value == "")
	{
		alert("Please enter your message");
		InputForm.Message.focus();
		return false;
	}
	return true;
}

function clearform() 
	{ 
	 InputForm.Name.value = "Name";	
	 InputForm.Company.value = "Company";
	 InputForm.ContactNumber.value = "Contact Number";
	 InputForm.EmailAddress.value = "Email Address";
	 InputForm.Message.value = "Message";
	}	

<!-- Hide script from old browsers
   chk = 1

   document.WM = new Object();

   document.WM.hirelist = new Object();

   document.WM.hirelist.expandos = new Array();

   document.WM.hirelist.heights = new Array();

   document.WM.hirelist.names = new Array();

function WM_off(id) {

     if (document.all)
     {
         document.all[id].style.display = 'none';
     }

     if (document.getElementById)
     {
	 document.getElementById(id).style.display = 'none';
     }

     if(document.layers) 
     {
     	  ditem = document.WM.hirelist.names[id];
	  document.WM.hirelist.expandos[ditem].clip.bottom = 0;
     }

   }
   

function WM_toggle(id) {

     if (document.all){

       if(document.all[id].style.display == 'none'){

         document.all[id].style.display = '';

       } else {

         document.all[id].style.display = 'none';

       }

     } else if (document.getElementById){

       if(document.getElementById(id).style.display == 'none'){

         document.getElementById(id).style.display = 'block';

       } else {

         document.getElementById(id).style.display = 'none';

       }

     } else if(document.layers) {

         if(parseInt(id + 1)){

   	  ditem = id + 1;

         } else {

   	  ditem = document.WM.hirelist.names[id];

         }

         if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) {

   	     document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem];

         } else {

   	  document.WM.hirelist.expandos[ditem].clip.bottom = 0;

         }

         WM_align();

     }

   }

   

function WM_align() {

       var i,j,stupid_netscape_array_infinate_loop_error;

       stupid_netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;

       for(i=0; i<stupid_netscape_array_infinate_loop_error; i++) {

   		j = i + 1;

   		if(document.WM.hirelist.expandos[j]){

   	    	if(document.layers) {

   				document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom;

   	   		}

   		}

       }

   }

function WM_initialize_toolbar(){

       if(document.layers) {

   		for(i=0; i<document.layers['container'].document.layers.length; i++){

   	    	document.WM.hirelist.expandos[i] = document.layers['container'].document.layers[i];

   	    	document.WM.hirelist.names[document.layers['container'].document.layers[i].name] = i;

   	    	document.WM.hirelist.heights[i] = document.WM.hirelist.expandos[i].clip.bottom;

   		}

   		for (p=0;p<document.WM.hirelist.expandos.length;p=p+2){

   	    	WM_toggle(p);

   		}

   		document.layers['container'].visibility = 'visible';

       } else if (document.all){

   		for(i = 0; i < document.all('container').all.length; i++){

   		    document.all('container').all[i].style.position = 'relative';

   		    if(document.all('container').all[i].className == 'menu'){

   			document.all('container').all[i].style.display = 'none';

   		    }

   		}

   		document.all('container').style.visibility = 'visible';	

       } else if (document.getElementsByTagName && document.getElementById){

   		var contained = document.getElementById('container').getElementsByTagName('div');

   		for(i = 0; i < contained.length; i++){

   		    contained[i].style.position = 'relative';

   		    if(contained[i].getAttribute('class') == 'menu'){

   			contained[i].style.display = 'none';

   		    }

   		}

   		document.getElementById('container').style.visibility = 'visible';

       }

   }

// End the hiding -->