<!--
/*====================================================================================================*/
function clearme(FormField) {
	if (FormField.defaultValue==FormField.value) FormField.value=""
}//end function
/*====================================================================================================*/
function ShowAccInfo(xACCESSORYid) {
	window.showModalDialog("../../accinfo.asp?"+xACCESSORYid,null,"dialogHeight:400px;dialogWidth:800px;center:yes;resizable:yes;scroll:yes;status:no");	
}//end function
/*====================================================================================================*/
function ShowFeatInfo(xFEATUREid) {
	window.showModalDialog("../../featinfo.asp?"+xFEATUREid,null,"dialogHeight:400px;dialogWidth:800px;center:yes;resizable:yes;scroll:yes;status:no");	
}//end function
/*====================================================================================================*/
function SetDarkDiv() {
	xDARKdiv=document.getElementById("DarkDiv");
	if (!xDARKdiv) {
		xDARKdiv=document.createElement("div");
		xDARKdiv.setAttribute("id", "DarkDiv");
		document.body.appendChild(xDARKdiv);
	}//end if (!DarkDiv)
	xWinWidth=window.innerWidth;
	xWinHeight=window.innerHeight;
	if (!xWinWidth) {
		xWinWidth=document.documentElement.clientWidth;
		xWinHeight=document.documentElement.clientHeight;
	}//end if (!xWinWidth)
	for(i=0;i<=25; i++) { 
		setTimeout("SetDarkDivStyle("+i+","+xWinWidth+","+xWinHeight+")",i*20); 
	}//next i<=100
}//end function
/*====================================================================================================*/
function SetDarkDivStyle(MyOpacity, MyWidth, MyHeight) {
	xDARKdiv=document.getElementById("DarkDiv");
	xDARKdivStyle="position: absolute;";
	xDARKdivStyle+="background-color: #000000;";
	xDARKdivStyle+="width: "+MyWidth+"px;";
	xDARKdivStyle+="height: "+MyHeight+"px;";
	xDARKdivStyle+="top: 0px;";
	xDARKdivStyle+="left: 0px;";
	xDARKdivStyle+="bottom: 0px;";
	xDARKdivStyle+="filter: alpha(opacity="+MyOpacity+");";
	xDARKdivStyle+="opacity: "+MyOpacity/100+";";
	xDARKdiv.setAttribute("style", xDARKdivStyle);
	xDARKdiv.style.setAttribute("style", xDARKdivStyle);
	xDARKdiv.style.cssText=xDARKdivStyle;
}//end function
/*====================================================================================================*/
function SetLightDiv(xIMGsrc) {
	xLIGHTdiv=document.getElementById("LightDiv");
	if (!xLIGHTdiv) {
		xLIGHTdiv=document.createElement("div");
		xLIGHTdiv.setAttribute("id", "LightDiv");
		document.body.appendChild(xLIGHTdiv);
	}//end if (!xLIGHTdiv)
	xWinWidth=window.innerWidth;
	xWinHeight=window.innerHeight;
	if (!xWinWidth) {
		xWinWidth=document.documentElement.clientWidth;
		xWinHeight=document.documentElement.clientHeight;
	}//end if (!xWinWidth)
	for(i=0;i<=500; i++) {
		setTimeout("SetLightDivStyle('"+i+"', '100', '"+xWinWidth+"', '"+xWinHeight+"')",i); 
	}//next i<=500
	for(i=100;i<=370; i++) {
		setTimeout("SetLightDivStyle('500', '"+i+"', '"+xWinWidth+"', '"+xWinHeight+"')",i+500); 
	}//next i<=375
	xIMGhtml="<a ";
	xIMGhtml+=" href=\"javascript:unzoom();\"";
	xIMGhtml+=" style=\"color: #000000; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: small;\"";
	xIMGhtml+="><img ";
	xIMGhtml+=" src=\""+xIMGsrc.replace(/--/gi, "\\")+"\"";
	xIMGhtml+=" width=\"480\"";
	xIMGhtml+=" height=\"360\"";
	xIMGhtml+=" border=\"0\"";
	xIMGhtml+=" alt=\"zoomed image\"";
	xIMGhtml+=" />";
	xIMGhtml+="<br />click to close";
	xIMGhtml+="</a>";
	setTimeout("xLIGHTdiv.innerHTML=xIMGhtml", 870);
}//end function
/*====================================================================================================*/
function SetLightDivStyle(MyWidth, MyHeight, WinWidth, WinHeight) {
	xLIGHTdiv=document.getElementById("LightDiv");
	xLIGHTdivLeft=(WinWidth-MyWidth)/2;
	xLIGHTdivTop=(WinHeight-MyHeight)/2;
	xLIGHTdivStyle="position: absolute;";
	xLIGHTdivStyle+="background-color: #ffffff;";
	xLIGHTdivStyle+="width: "+MyWidth+"px;";
	xLIGHTdivStyle+="height: "+MyHeight+"px;";
	xLIGHTdivStyle+="padding: 10px;";
	xLIGHTdivStyle+="left: "+xLIGHTdivLeft+"px;";
	xLIGHTdivStyle+="top: "+xLIGHTdivTop+"px;";
	xLIGHTdivStyle+="text-align: center;";
	xLIGHTdiv.setAttribute("style", xLIGHTdivStyle);
	xLIGHTdiv.style.setAttribute("style", xLIGHTdivStyle);
	xLIGHTdiv.style.cssText=xLIGHTdivStyle;
}//end function
/*====================================================================================================*/
function zoom(xIMGsrc) {
	SetDarkDiv();
	setTimeout("SetLightDiv('"+xIMGsrc+"')", 500);
}//end function
/*====================================================================================================*/
function unzoom() {
	xDARKdiv=document.getElementById("DarkDiv");
	xLIGHTdiv=document.getElementById("LightDiv");
	xLIGHTdiv.innerHTML="";
	for(i=370;i>=100; i--) { 
		setTimeout("SetLightDivStyle('500', '"+i+"', '"+xWinWidth+"', '"+xWinHeight+"')",370-i); 
	}//next i<=375
	for(i=500;i>=0; i--) { 
		setTimeout("SetLightDivStyle('"+i+"', '100', '"+xWinWidth+"', '"+xWinHeight+"')",870-i); 
	}//next i>=0
	setTimeout("document.body.removeChild(xLIGHTdiv)", 870);
	for(i=25;i>=0; i--) { 
		setTimeout("SetDarkDivStyle("+i+","+xWinWidth+","+xWinHeight+")",((25-i)*20)+870); 
	}//next i<=100
	setTimeout("document.body.removeChild(xDARKdiv)", 1495);
}//end function
/*====================================================================================================*/
function CentreLightDiv() {
	xLIGHTdiv=document.getElementById("LightDiv");
	xDARKdiv=document.getElementById("DARKDiv");
	if (xLIGHTdiv) {
		xWinWidth=window.innerWidth;
		xWinHeight=window.innerHeight;
		if (!xWinWidth) {
			xWinWidth=document.documentElement.clientWidth;
			xWinHeight=document.documentElement.clientHeight;
		}//end if (!xWinWidth)
		SetLightDivStyle(500, 370, xWinWidth, xWinHeight);
		SetDarkDivStyle(25, xWinWidth, xWinHeight);
	}//end if (!xLIGHTdiv)
}//end function
/*====================================================================================================*/
function CopyAddress() {
	if (document.getElementById("usethesame").checked==true) {
		document.getElementById("xDELtitle").selectedIndex=document.getElementById("xCUSTtitle").selectedIndex;
		document.getElementById("xDELfirstname").value=document.getElementById("xCUSTfirstname").value;
		document.getElementById("xDELsurname").value=document.getElementById("xCUSTsurname").value;
		document.getElementById("xDELcompany").value=document.getElementById("xCUSTcompany").value;
		document.getElementById("xDELposition").value=document.getElementById("xCUSTposition").value;
		document.getElementById("xDELaddress1").value=document.getElementById("xCUSTaddress1").value;
		document.getElementById("xDELaddress2").value=document.getElementById("xCUSTaddress2").value;
		document.getElementById("xDELaddress3").value=document.getElementById("xCUSTaddress3").value;
		document.getElementById("xDELtown").value=document.getElementById("xCUSTtown").value;
		document.getElementById("xDELcounty").value=document.getElementById("xCUSTcounty").value;
		document.getElementById("xDELcountry").selectedIndex=document.getElementById("xCUSTcountry").selectedIndex;
		document.getElementById("xDELpostcode").value=document.getElementById("xCUSTpostcode").value;
		document.getElementById("xDELtel").value=document.getElementById("xCUSTtel").value;
		document.getElementById("xDELfax").value=document.getElementById("xCUSTfax").value;
		document.getElementById("xDELemail").value=document.getElementById("xCUSTemail").value;
	} else {
		document.getElementById("xDELtitle").selectedIndex=0;
		document.getElementById("xDELfirstname").value=document.getElementById("xDELfirstname").defaultValue;
		document.getElementById("xDELsurname").value=document.getElementById("xDELsurname").defaultValue;
		document.getElementById("xDELcompany").value=document.getElementById("xDELcompany").defaultValue;
		document.getElementById("xDELposition").value=document.getElementById("xDELposition").defaultValue;
		document.getElementById("xDELaddress1").value=document.getElementById("xDELaddress1").defaultValue;
		document.getElementById("xDELaddress2").value=document.getElementById("xDELaddress2").defaultValue;
		document.getElementById("xDELaddress3").value=document.getElementById("xDELaddress3").defaultValue;
		document.getElementById("xDELtown").value=document.getElementById("xDELtown").defaultValue;
		document.getElementById("xDELcounty").value=document.getElementById("xDELcounty").defaultValue;
		document.getElementById("xDELcountry").selectedIndex=0;
		document.getElementById("xDELpostcode").value=document.getElementById("xDELpostcode").defaultValue;
		document.getElementById("xDELtel").value=document.getElementById("xDELtel").defaultValue;
		document.getElementById("xDELfax").value=document.getElementById("xDELfax").defaultValue;
		document.getElementById("xDELemail").value=document.getElementById("xDELemail").defaultValue;
	}//end if (document.getElementById("usethesame").checked==true)
}//end function
/*====================================================================================================*/
function UpdateField (Source, Target) {
	if (document.getElementById("usethesame").checked==true) {
		document.getElementById(Target).value=document.getElementById(Source).value;
	}//end if (document.getElementById("usethesame").checked==true)
}//end function
/*====================================================================================================*/
function UpdateDrop (Source, Target) {
	if (document.getElementById("usethesame").checked==true) {
		document.getElementById(Target).selectedIndex=document.getElementById(Source).selectedIndex;
	}//end if (document.getElementById("usethesame").checked==true)
}//end function
/*====================================================================================================*/
window.onresize=function() {
	CentreLightDiv();
}//end function
/*====================================================================================================*/
-->
