<!--
//window.onerror=null;
browserName = navigator.appName;          
browserVer = parseInt(navigator.appVersion);

hasImageSupport = false;
relativePath2 = relativePath + "images/";
buttonName = new Array ('BtnResources','BtnContactUs','BtnHome','BtnAboutUs','BtnProducts','BtnSiteMap');

window.onresize = (document.layers) ? redo:enlarge;

for (var cnt=0; cnt < buttonName.length; cnt++) {
	eval ('var '+buttonName[cnt]+'_on = new Image();');
	eval (buttonName[cnt] + '_on.src = "'+relativePath2 + buttonName[cnt] + '_on.gif"');
	eval ('var '+buttonName[cnt]+'_off = new Image();');
	eval (buttonName[cnt] + '_off.src = "'+relativePath2 + buttonName[cnt] + '.gif"');
}	

if (browserName == "Netscape" && browserVer >= 3)
   hasImageSupport = true;
else if (browserVer > 3)
   hasImageSupport = true;

function buttonAction (imgName, isItOn) {   
  if (hasImageSupport) {
      if (isItOn) {
         document[imgName].src = eval(imgName + "_on.src");
      } else { 
         document[imgName].src = eval (imgName + "_off.src");
      }
   }
}

function redo() {
	window.location.reload();
}

function myRuler () {
	if (document.layers) {
		myHeight = window.outerHeight - 255;
		document.write ('<img src="'+relativePath+'layout/part/spacer.gif" width="2" height="'+myHeight+'" name="ruler">');	
	} else
		document.write ('<img src="'+relativePath+'layout/part/spacer.gif" width="2" height="1" name="ruler">');
}

function enlarge() {
	if (browserName == "Netscape" && document.getElementById )
		document.images['ruler'].height = window.outerHeight -255;	
	else if (document.all)
		document.images['ruler'].height = document.body.offsetHeight - 121;
}


function sameShippingInfo () {
	document.placeorder.billing_firstname.value = document.placeorder.firstname.value;
	document.placeorder.billing_lastname.value = document.placeorder.lastname.value;
	document.placeorder.billing_phone.value = document.placeorder.phone.value;
	document.placeorder.billing_address.value = document.placeorder.address.value;
	document.placeorder.billing_city.value = document.placeorder.city.value;
	document.placeorder.billing_state_province.value = document.placeorder.state_province.value;
	document.placeorder.billing_zip_postal.value = document.placeorder.zip_postal.value;
	document.placeorder.billing_country.value = document.placeorder.country.value;
}

function unCheckSameShippingInfo () {
	document.placeorder.same_as_shipping.checked = false;
}


function viewpic (url) {
  var height=520;
  var width=385;
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
	var xc,yc;
    xc = (aw - width) / 2;
	
   	yc = (ah - height) / 2;
    str += ",left=0,screenX=0";
    str += ",top=0,screenY=0";
  }

	var html ='<html>\n<head>\n<title>Kite-Line</title>\n<link rel="stylesheet" type="text/css" href="'+relativePath+'mystyle.css"></head>\n<body bgcolor="white" leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginwidth=0 marginheight=0>\n';
	html += '<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%"><tr><td align=center id="s"><img src="'+relativePath+'product/'+url+'" width=375 height=500><br><a href="javascript:window.close();" id="c1">CLOSE</a></td></tr></table>';
	html += '\n</body>\n</html>';


	var win = window.open("","viewLarge", str);
	win.document.open("text/html", "replace");	
	win.document.write(html);
	win.document.close();
	win.window.focus();
} 
//-->