
/*var msg="All materials contained on this site are protected by U.S. and International copyright and\nother intellectual property laws.\n\nReproduction, distribution, sale, publishing or broadcasting of the materials found on this site\nwithout the prior written permission of Chrome and Leather Plus, Inc. is stictly prohibited."; 
function disableIE() {if (document.all) {alert(msg);return false;}
}
function disableNS(e) {
  if (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {alert(msg);return false;}
  }
}
if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
} else {
  document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}
document.oncontextmenu=new Function("alert(msg);return false")
*/
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=600,left = 390,top = 262');");
	}
function popUpHSize(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=840,height=320,left = 200,top = 200');");
	}
function popUpCVV(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=520,height=420,left = 390,top = 262');");
	}

var NS = (navigator.appName == "Netscape");

function openWindow(thisURL,thisName,thisArgs) {
	internalURL = thisURL;
	internalName = thisName;
	internalArgs = thisArgs;
	if (internalURL == '') {
		exit;
	}
	if (internalName == '') {
		internalName = 'popupWin';
	}
	if (internalArgs == '') {
		internalArgs = 'scrollbars,resizable,toolbar,width=640,height=480,left=50,top=50';
	}
	popupWin = window.open(internalURL,internalName,internalArgs);
 	popupWin.focus();
}

function openWindow640(thisURL) {
	openWindow(thisURL,'popupWin640','');
}

function openWindowWH(thisURL,thisW,thisH) {
	internalArgs = 'scrollbars,resizable,toolbar,left=50,top=50,width=' + thisW + ',height=' + thisH;
	openWindow(thisURL,'popupWinWH',internalArgs);
}

function openWindowDemo(thisURL) {
	internalName = 'popupWinDemo';
	internalArgs = 'scrollbars,resizable,toolbar,left=50,top=50,width=475,height=570';
  openWindow(thisURL,internalName,internalArgs);
}

function openWindowDemoSmall(thisURL) {
	internalName = 'popupWinDemo';
	internalArgs = 'scrollbars,resizable,toolbar,left=50,top=50,width=250,height=250';
  openWindow(thisURL,internalName,internalArgs);
}

function ToggleBoxes(dowhat) {
	for (i=0; i<document.forms[0].elements.length; i++) {
		if (document.forms[0].elements[i].type == 'checkbox') {
			if (dowhat == 'on') {
				document.forms[0].elements[i].checked = true;
			} else {
				document.forms[0].elements[i].checked = false;
			}
		}
	}
}

function printit(){
	if (NS) {
		window.print();
	}	else {
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(6, 2);
		WebBrowser1.outerHTML = "";
	}
}







