//
// global .js v1.0
//
//

//self.onError=null;



function submitForm(form,check) {
	
	var err=false;
	
	switch (check) {
		case 'creditCard':
			err=!testCreditCard(form);
		break;
	}
	
	if (!err) {
		document.forms[form].submit();
	}
	
}


function BrowserCheck()
{
	var browser = navigator.appName;
	var os = navigator.appVersion;
	if (browser == "Netscape") this.browser = "ns"
	else if (browser == "Microsoft Internet Explorer") this.browser = "ie";
	else this.browser = browser;

	if (os.indexOf("Win") != -1) this.os = "win"
	if (os.indexOf("Mac") != -1) this.os = "mac"
	else this.os = os;

	this.version = parseInt(navigator.appVersion)
	this.win = (this.os=="win")
	this.mac = (this.os=="mac")
	this.ns = (this.browser== "ns" && this.version<5)
	this.gk = (this.browser== "ns" && this.version>=5)
	this.ie = (this.browser== "ie" && this.version>=4)
}

is = new BrowserCheck();

	function openwin(the_url) {
			window.open(the_url,'preview','width=190,height=190');
	}
	function openwinsized(the_url,w,h) {
			window.open(the_url,'preview','width='+w+',height='+h);
		}