
// use these to remember the site width */

var oldWidth =817;
var fullWidth = 800;
var isDHTML=0, isLayers=0, isAll=0, isID=0;
 

/*This Script allows people to enter by using a form that asks for a
UserID and Password*/


function pasuser(form) 
{
	if (form.id.value=="ffA") 
	{ 
		if (form.pass.value=="mypass") 
		{              
			location="gotit.html" 
		} 
		else 
		{
			alert("Invalid Password")
		}
	} 
	else 
		{  alert("Invalid UserID")
		}
}



function FindDOM(objectID, withStyle) 
{

	if (withStyle==1) 
	{

	if (isID) { return(document.getElementById(objectID).style);}
	else {
			if (isAll) { return(document.all[objectID].style);}
	     		else {
				if (isLayers) { return(document.layers[objectID]);}
	           	     }
             }

	}
	else 
	{

		if (isID) {return(document.getElementById(objectID));}
		else {
			if (isAll) {return(document.all[objectID]);}
             		else {
				if (isLayers) {return(document.layers[objectID]);}
		             }
             	     }
	
	}
}


function checkDHTML() { 

var s1="not DHTML",s2=" browser",s3;

	if (document.getElementById) {isID=1; isDHTML=1;}
	else{
		if (document.layers) {isLayers=1; isDHTML=1;}
		else{
			if (document.all) {isAll=1; isDHTML=1;}
	    		}
    		}

	if (isDHTML) { s1=' This is DHTML capable browser! ';}

	if (isID) { s2= 'WWW consortium ';}

	if (window.Iterator) { s2= ' Firefox 2+ ';}


//	if (navigator.appName=="Microsoft Internet Explorer") 
//	{alert(" I have found Microsoft Internet Explorer" + s2); return false;}

//	if (navigator.appName=="Netscape") 
//		{alert(" I have found Netscape" + s2); 	return true;	}

}




// test function - resizes window

function checkDHTML2(val1, val2) { 
var dom = null;
var domStyle = null;

var s1="not DHTML",s2=" browser",s3 = "no outer width";
return true;
if (document.getElementById) {isID=1; isDHTML=1;}
else
{
	if (document.layers) {isLayers=1; isDHTML=1;}
	else
	{
		if (document.all) {isAll=1; isDHTML=1;}
    	}
}


// check which browser type:

if (window.Iterator) { s2= ' Firefox 2  ';}

if (window.outerWidth) { s3= ' outerwidth detected  '; resizeTo(val1, val2);}

if (navigator.appName=="Microsoft Internet Explorer") 
	{ return false;}
//alert("checkDHTML2 I have found Microsoft Internet Explorer" + s3 + val1 + val2);


if (navigator.appName=="Netscape") 
		{ return true;}
//alert(" checkDHTML2 I have found Netscape: " + s2 + s3 + val1 + val2);

}




// this function is to change font - it works!

function changeFont(ID, styleName, newVal) { 

var domStyle = null;

var s1="not DHTML",s2=" browser",s3;

if (document.getElementById) {isID=1; isDHTML=1;}
else
{
	if (document.layers) {isLayers=1; isDHTML=1;}
	else
	{
		if (document.all) {isAll=1; isDHTML=1;}
    	}
}


domStyle = FindDOM(ID,1);


// check which browser type:

if (window.Iterator) { s2= ' Firefox 2 and change ';}


if (navigator.appName=="Microsoft Internet Explorer") 
	{ return false;}

//alert("changeFont I have found Microsoft Internet Explorer" + styleName +newVal);

if (navigator.appName=="Netscape") 
		{  domStyle[styleName] = newVal; return true;}

//alert("changeFont I have found Netscape: " + s2  + styleName +newVal);

//if (navigator.appName=="Opera") 
//	{alert("changeFont I have found Opera: " + s2  + styleName + newVal); return true;}

}


// this function is to shift Site if resized : does it work?!




function moveSite(ID) 
{ 
var dom = null;
var domStyle = null;
var newWidth=0;
var newPos=0;

if (document.getElementById) {isID=1; isDHTML=1;}
else{
	if (document.layers) {isLayers=1; isDHTML=1;}
	else{
		if (document.all) {isAll=1; isDHTML=1;}
    		}
  	}

dom = FindDOM(ID,0);

domStyle = FindDOM(ID,1);

newWidth = document.body.offsetWidth;


//Where should it be?? if newWidth > fullWidth, calc the position!

if (newWidth > fullWidth)
{ 

	newPos = (newWidth -fullWidth)/2;
}
//alert("move Obj: width =  "+ document.body.offsetWidth + " newPos = " + newPos);



//Explorer

if (domStyle.pixelLeft)
			{
			domStyle.pixelLeft =newPos;

			}
			else { 
//Netscape 6
					if (dom.offsetLeft != null)
					{
			 			domStyle.left = newPos;

					}
					else  { dom.moveBy(0, 0);  alert("move DOM!! ");  }
				}
domStyle.visibility= 'visible';

return true;
}

// this function is to shift a div - it works!



function moveObjectby(ID, deltaX, deltaY) { 
var dom = null;
var domStyle = null;

var s1;

if (document.getElementById) {isID=1; isDHTML=1;}
else{
	if (document.layers) {isLayers=1; isDHTML=1;}
	else{
		if (document.all) {isAll=1; isDHTML=1;}
    		}
  	}


domStyle = FindDOM(ID,1);
dom = FindDOM(ID,0);

// this for moveSite call later: what size are we loading into??  

oldWidth = document.body.offsetWidth;

//alert("move Obj: width =  "+ document.body.offsetWidth + " oldWidth = " + oldWidth);

if (navigator.appName=="Microsoft Internet Explorer") 
	{  return false;}



//if (navigator.appName=="Opera"){alert("Opera");}

//if (navigator.appName=="Netscape") {alert("Netscape");}

//if (navigator.appName=="Safari") {alert("Safari");}

if (navigator.appName=="Opera") 
//{alert("Found Opera " + navigator.appName);}
		{  if (domStyle.pixelLeft){
			domStyle.pixelLeft += deltaX;
			domStyle.pixelTop  += deltaY;
			}
			else { 
				if (dom.offsetLeft != null){
		 		var plusLeft = dom.offsetLeft;
		 		var plusTop = dom.offsetTop;
		 		domStyle.left = deltaX + plusLeft;
		 		domStyle.top = deltaY + plusTop;
				}
				else  { dom.moveBy(deltaX, deltaY); }	}
		  return true;		}



if (navigator.appName=="Netscape") 
		{  if (domStyle.pixelLeft){
			domStyle.pixelLeft += deltaX;
			domStyle.pixelTop  += deltaY;
			}
			else { 
				if (dom.offsetLeft != null){
		 		var plusLeft = dom.offsetLeft;
		 		var plusTop = dom.offsetTop;
		 		domStyle.left = deltaX + plusLeft;
		 		domStyle.top = deltaY + plusTop;
				

				}
				else  { dom.moveBy(deltaX, deltaY);  }


    			}


		  return true;
		}

}
//Opera scroll probs. this function is to change height of a div - does it work?! Hmmm...



function lengthenObjectby(ID, deltaH) { 
var dom = null;
var domStyle = null;

var s1;

if (document.getElementById) {isID=1; isDHTML=1;}
else{
	if (document.layers) {isLayers=1; isDHTML=1;}
	else{
		if (document.all) {isAll=1; isDHTML=1;}
    		}
  	}


domStyle = FindDOM(ID,1);
dom = FindDOM(ID,0);


if (navigator.appName=="Microsoft Internet Explorer") 
	{ return false;}


if (navigator.appName=="Netscape") 
	{  return false;}


if (navigator.appName=="Opera") 
		{  if (domStyle.pixelLeft)
			{
//			alert("Opera here " );
			domStyle.pixelHeight  += deltaH;
			}
			else { 
				if (dom.offsetLeft != null)
				{
		 		var plusHeight = dom.offsetHeight;
		 		domStyle.height = deltaH + plusHeight;
//				alert("Opera and here " );
		 		
				

				}
				else  { 
//					alert("Opera or here " ); 
					dom.moveBy(deltaH, deltaH);  
					}


    			    }


		  return true;  
		}
}

var menuTop = 200;
var menuLeft = 400;
var domSMenu = null;
var oldDomSMenu = null;
var domMenu = null;
var domMenuOpt = null;
var idMenu = null;
var idMenuOpt = null;
var idSMenu = null;
var t= 0;
var lDelay = 4;
var lCount = 0;
var pause = 100;

function popMenu(menuNum){


	if (isDHTML){

		t=2;
		if(oldDomSMenu){

			oldDomSMenu.visibility = 'hidden';
			oldDomSMenu.zIndex = '0';
			t=2;
			lCount = 0;
		}
		
		idMenu = 'menuHead';
		idMenuOpt = 'menuHead' + menuNum;
		idSMenu = 'menu' + menuNum;
	

         	domMenu = FindDOM(idMenu,0);

		domSMenu = FindDOM(idSMenu,1);
		domMenuOpt = FindDOM(idMenuOpt,0);



	if (isID || isAll)  {
			
			var menuLeft = (domMenu.offsetLeft) + (domMenuOpt.offsetLeft) + 0;
			var menuTop = (domMenu.offsetTop) + (domMenu.offsetHeight) +0;

			}

	if (isLayers){
			var menuLeft = document.layers[idMenu].layers[idMenuOpt].pageX - 5;
			var menuTop = domMenu.pageY +domMenu.clip.height - 5;
			}

	if (oldDomSMenu != domSMenu) {
			domSMenu.left = menuLeft;
			domSMenu.top = menuTop;
			domSMenu.visibility = 'visible';
			domSMenu.zIndex = '100';
			oldDomSMenu = domSMenu;
			}
		else { oldDomSMenu = null;}
	}
	else {return null;}

	}

function delayHide(){

	if ((oldDomSMenu) && (t == 0)){
			oldDomSMenu.visibility = 'hidden';
			oldDomSMenu.zIndex = '0';
			oldDomSMenu = null;
			lCount = 0;
			return false;
	}

	if (t == 2) {lCount= 0; return false;}
	if (t == 1) {
		lCount = lCount + 1;
		if (lDelay <= lCount) { t = 0;}
		if (lDelay >= lCount) { setTimeout ('delayHide(' + t + ')',pause);}
	}
}


function findWidth(dom) {

if (dom.offsetWidth) return dom.offsetWidth;
if (dom.clip.width) return dom.clip.width;
 
}


function findHeight(dom) {

}


function whereAmI(ObjectID) {


checkDHTML();

domStyle=FindDOM(ObjectID,1);
dom = FindDOM(ObjectID,0);
isNS = 99;
posTop=99;
heightObj=0;
widthObj=0;

if (navigator.appName.indexOf('Netscape')!= -1)  
{isNS=1;}
else
{isNS=0;}

widthObj=findWidth(dom);

if (isNS ==1) 
{

if (domStyle.top) {posTop = domStyle.top;}

if (dom.offsetTop) 
{
  posTop = dom.offsetTop;

  domStyle.top= posTop;

  if (dom.offsetHeight) {heightObj = dom.offsetHeight;}
  else
  {if (dom.clip.height) {heightObj = dom.clip.height;}
  
  alert("clip Ht");}

  dom.offsetHeight = heightObj+30;
  dom.clip.height = heightObj+30;
  domStyle.height = heightObj+30;
  heightObj +=30;

}
alert("Netscape Width=" + widthObj + " height" + heightObj+ " Top"+posTop);

alert("Appcodename=" + navigator.appCodeName 
	+ "  AppName=" +  navigator.appName
	+ "  AppVersion=" +  navigator.appVersion
	+ "  userAgent=" +  navigator.userAgent );
}

}


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_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_openWindow(theURL,winName) { //v2.0

  window.open(theURL,winName,'resizable=yes, scrollbars=yes');
}
 
	
function autoChange(PageID)
{

var timeID = window.setTimeout("location.href= PageID",3*1000);

location.replace(PageID);

}


function mrefsupport(mine) 
{ 
temp = "support@" + 
"ffa.co.uk?" + 
"subject=Support%20Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 
function mrefinfo(mine) 
{ 
temp = "info@" + 
"ffa.co.uk?" + 
"subject=Info%20Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 
function mrefmail(mine) 
{ 
temp = "info@" + 
"ffa.co.uk?" + 
"subject=ffA%20Mailing%20List"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 
function mrefsales(mine) 
{ 
temp = "sales@" + 
"ffa.co.uk?" + 
"subject=Sales%20Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 
function mrefcareers(mine) 
{ 
temp = "careers@" + 
"ffa.co.uk?" + 
"subject=Careers%20Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefBrazil(mine) 
{ 
temp = "info@" + 
"geoquasar.com.br?" + 
"subject=Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefChina(mine) 
{ 
temp = "tonyqiu@" + 
"gssgeo.com?" + 
"subject=Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefIndo(mine) 
{ 
temp = "kennyt@" + 
"pteci.com?" + 
"subject=Message%20from%20ffA%20website%20for%20PTECI%20Office"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefUAE(mine) 
{ 
temp = "jka@" + 
"ayresgl.com?" + 
"subject=Message%20from%20ffA%20website%20for%20Bill%20Ayres"; 
temp = "mailto:" + temp; 
mine.href=temp; 
}

function mrefSA(mine) 
{ 
temp = "contactus@" + 
"tusksolutions.com?" + 
"subject=Message%20from%20ffA%20website%20for%20Tusk%20Solutions"; 
temp = "mailto:" + temp; 
mine.href=temp; 
}

function mrefMexico(mine) 
{ 
temp = "dgonzalez@" + 
"brains.bz?" + 
"subject=Message%20from%20ffA%20website%20for%20NetBrains%20Office"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefEAME(mine) 
{ 
temp = "sales@" + 
"ffa.co.uk?" + 
"subject=Message%20from%20ffA%20website%20for%20EAME%20Office"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefUSA(mine) 
{ 
temp = "Sales-USA@" + 
"ffa.co.uk?" + 
"subject=Message%20from%20ffA%20website%20for%20North%20and%20South%20America%20Office"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 

function mrefLondon(mine) 
{ 
temp = "sales-UK@" + 
"ffa.co.uk?" + 
"subject=Message%20from%20ffA%20website%20for%20London%20Office"; 
temp = "mailto:" + temp; 
mine.href=temp; 
}


function mrefLynn(mine) 
{ 
temp = "lstevenson@" + 
"ffa.co.uk?" + 
"subject=Message%20from%20ffA%20website"; 
temp = "mailto:" + temp; 
mine.href=temp; 
} 




function mrefBulletin(mine, subject) 
{ 
temp = "info@" + 
"ffa.co.uk?" + subject; 

temp = "mailto:" + temp; 
mine.href=temp; 
}



// use these to check form fields 




function checkscripteval(form) { 

var returnValue = true;
    var errorMessage = 'The following field(s) are required and do not contain any information:\n\n';
    var focusField = null;

    if((!form.lmhostid1.value)||(!form.lmhostid2.value)||(!form.lmhostid3.value)||
			(!form.lmhostid4.value)||(!form.lmhostid5.value)||(!form.lmhostid6.value))
    {
      errorMessage += ' - Computer lmhostid\n';      	if(!focusField)        focusField = form.lmhostid1;      returnValue = false;
    } else
    {
	form.lmhostid.value = (form.lmhostid1.value+form.lmhostid2.value+form.lmhostid3.value+form.lmhostid4.value+form.lmhostid5.value+form.lmhostid6.value);
//	      alert("lmhostid set to " + form.lmhostid.value);

    }

    if(!form.Surname.value)
    {
      errorMessage += ' - Surname\n';      		if(!focusField)        focusField = form.Surname;      	returnValue = false;
    }
    if(!form.Co_Name.value)
    {
      errorMessage += ' - Company Name\n';      	if(!focusField)        focusField = form.Co_Name;      	returnValue = false;
    }
    if(!form.Position.value)
    {
      errorMessage += ' - Position/Job Title\n';      	if(!focusField)        focusField = form.Position;      returnValue = false;
    }
    if(!form.Address1.value)
    {
      errorMessage += ' - Office Address Line 1\n';     if(!focusField)        focusField = form.Address1;      returnValue = false;
    }
    if(!form.City.value)
    {
      errorMessage += ' - City\n';      		if(!focusField)        focusField = form.City;      	returnValue = false;
    }
    if(!form.Country.value)
    {
      errorMessage += ' - Country\n';      		if(!focusField)        focusField = form.Country;      	returnValue = false;
    }
    if(!form.ZIP.value)
    {
      errorMessage += ' - ZIP/Postal Code\n';      	if(!focusField)        focusField = form.ZIP;      	returnValue = false;
    }
    if(!form.Phone.value)
    {
      errorMessage += ' - Telephone\n';      		if(!focusField)        focusField = form.Phone;      	returnValue = false;
    }
    if(!form.email.value)
    {
      errorMessage += ' - Email\n';      		if(!focusField)        focusField = form.email;      	returnValue = false;
    }
    if(!form.conf_email.value)
    {
      errorMessage += ' - Confirm  email\n';      	if(!focusField)        focusField = form.conf_email;     returnValue = false;
    }
    if(form.email.value != form.conf_email.value)
    {
    errorMessage += 'The Password and verified password does not match!\n';
    returnValue = false;
    }
    



    if(!returnValue)
    {
      alert(errorMessage);
      if(focusField)
        focusField.focus();
    }

    return returnValue;


}
function checkquote(form) { 

var returnValue = true;
    var errorMessage = 'The following field(s) are required for a Quotation: they do not contain any information:\n\n';
    var focusField = null;

 
    if(!form.Surname.value)
    {
      errorMessage += ' - Surname\n';      	if(!focusField)        focusField = form.Surname;      returnValue = false;
    }
    if(!form.Co_Name.value)
    {
      errorMessage += ' - Company Name\n';      if(!focusField)        focusField = form.Co_Name;      returnValue = false;
    }
    if(!form.Position.value)
    {
      errorMessage += ' - Position/Job Title\n';      	if(!focusField)        focusField = form.Position;      returnValue = false;
    }
    if(!form.Address1.value)
    {
      errorMessage += ' - Office Address Line 1\n';      if(!focusField)       focusField = form.Address1;      returnValue = false;
    }
    if(!form.City.value)
    {
      errorMessage += ' - City\n';      if(!focusField)        focusField = form.City;      returnValue = false;
    }
    if(!form.Country.value)
    {
      errorMessage += ' - Country\n';      if(!focusField)        focusField = form.Country;      returnValue = false;
    }
    if(!form.ZIP.value)
    {
      errorMessage += ' - ZIP/Postal Code\n';      if(!focusField)        focusField = form.ZIP;      returnValue = false;
    }
    if(!form.Phone.value)
    {
      errorMessage += ' - Telephone\n';      if(!focusField)        focusField = form.Phone;      returnValue = false;
    }

    if(!form.email.value)
    {
      errorMessage += ' - Email\n';      if(!focusField)        focusField = form.email;      returnValue = false;
    }

    if(!form.conf_email.value)
    {
      errorMessage += ' - Confirm  email\n';      if(!focusField)        focusField = form.conf_email;      returnValue = false;
    }

    if(form.email.value != form.conf_email.value)
    {
    errorMessage += 'The Password and verified password does not match!\n';
    returnValue = false;
    }


    if(!returnValue)
    {
      alert(errorMessage);
      if(focusField)
        focusField.focus();
    }

    return returnValue;


}

function checkreseller(form) { 

var returnValue = true;
    var errorMessage = 'The following field(s) are required for a Reseller application: they do not contain any information:\n\n';
    var focusField = null;

 
    if(!form.Surname.value)
    {
      errorMessage += ' - Surname\n';      	if(!focusField)        focusField = form.Surname;      returnValue = false;
    }
    if(!form.Co_Name.value)
    {
      errorMessage += ' - Company Name\n';      if(!focusField)        focusField = form.Co_Name;      returnValue = false;
    }
    if(!form.Position.value)
    {
      errorMessage += ' - Position/Job Title\n';      	if(!focusField)        focusField = form.Position;      returnValue = false;
    }
    if(!form.Address1.value)
    {
      errorMessage += ' - Office Address Line 1\n';      if(!focusField)       focusField = form.Address1;      returnValue = false;
    }
    if(!form.City.value)
    {
      errorMessage += ' - City\n';      if(!focusField)        focusField = form.City;      returnValue = false;
    }
    if(!form.Country.value)
    {
      errorMessage += ' - Country\n';      if(!focusField)        focusField = form.Country;      returnValue = false;
    }
    if(!form.ZIP.value)
    {
      errorMessage += ' - ZIP/Postal Code\n';      if(!focusField)        focusField = form.ZIP;      returnValue = false;
    }
    if(!form.Phone.value)
    {
      errorMessage += ' - Telephone\n';      if(!focusField)        focusField = form.Phone;      returnValue = false;
    }

    if(!form.web.value)
    {
      errorMessage += ' - Your Web Site Address\n';      if(!focusField)        focusField = form.web;      returnValue = false;
    }

    if(!form.email.value)
    {
      errorMessage += ' - Email\n';      if(!focusField)        focusField = form.email;      returnValue = false;
    }

    if(!form.conf_email.value)
    {
      errorMessage += ' - Confirm  email\n';      if(!focusField)        focusField = form.conf_email;      returnValue = false;
    }

    if(form.email.value != form.conf_email.value)
    {
    errorMessage += 'The Password and verified password does not match!\n';
    returnValue = false;
    }


    if(!returnValue)
    {
      alert(errorMessage);
      if(focusField)
        focusField.focus();
    }

    return returnValue;


}




