function popUp(URL, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=250,height=" + height + ",left = 340,top = 100');");
}

function popUp2(URL, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=250,height=" + height + ",left = 340,top = 100');");
}

function zxcWWHS(){
 if (document.all){
  zxcCur='hand';
  zxcWH=document.documentElement.clientHeight;
  zxcWW=document.documentElement.clientWidth;
  zxcWS=document.documentElement.scrollTop; //ie trans & strict
  if (zxcWH==0){
   zxcWS=document.body.scrollTop; //ie trans & strict
   zxcWH=document.body.clientHeight;
   zxcWW=document.body.clientWidth;
  }
 }
 else if (document.getElementById){
  zxcCur='pointer';
  zxcWH=window.innerHeight-15;
  zxcWW=window.innerWidth-15;
  zxcWS=window.pageYOffset;
 }
 zxcWC=Math.round(zxcWW/2);
 return [zxcWW,zxcWH,zxcWS];
}

function zxcScrollTop(){
 zxcS=0;
 if (!document.all){ zxcST=window.pageYOffset; }
 else if (!document.body.scrollTop){ zxcST=document.documentElement.scrollTop; }
 else { zxcST=document.body.scrollTop; }
 gtts.top=(zxcST+zxcWWHS()[1]-gtt.offsetHeight)+'px';
 return zxcST;
}

window.onscroll=zxcScrollTop;

function gttPosition(){
 gtt=document.getElementById('GotoTop');
 gtts=gtt.style;
 gtts.left=(zxcWWHS()[0]-gtt.offsetWidth-20)+'px';
//or the distance left you require
 zxcScrollTop();
}

function Top(){
  window.scroll(0,0);
}


function validateForm(form2)
{

if(""==document.forms.form2.name.value)
{
alert("Please enter your full name.");
return false;
}

if(""==document.forms.form2.telephone.value)
{
alert("Please enter your telephone.");
return false;
}


}


function validate_form ( )
{
	valid = true;

        if ( document.form2.telephone.value == "" )
        {
                alert ( "Please fill in your telephone." );
                valid = false;
        }

        return valid;
}
