//javascript functions

// Browser Sniffer
v3 = 0; op = 0; ie4  = 0; ie5 = 0; nn4 = 0; nn6 = 0; isMac = 0; aol = 0;

if(document.images){
    if(navigator.userAgent.indexOf("Opera") != -1){
        op = 1;
    } else {
        if(navigator.userAgent.indexOf("AOL") != -1){
            aol = 1;
        } else {
            ie4 = (document.all && !document.getElementById);
            nn4 = (document.layers);
            ie5 = (document.all && document.getElementById);
            nn6 = (document.addEventListener);
        }
    }
} else {
    v3 = 1;	
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}
                  
function Launch_Window(url,h,w){
	window.open(url,'new','HEIGHT='+ h +',WIDTH='+ w +',SCROLLBARS=no,RESIZABLE=no') 
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

function Open_Product(product_type,item_name,item_number,amount,buyme) {
	var url = "/products/product_details.cfm?product_type=" + product_type + "&item_name=" + item_name + "&item_number=" + item_number + "&amount=" + amount + "&buyme=" + buyme;
	self.location.href= url;
}

function Open_PayPal(cmd,business,item_name,item_number,amount,currency_code,lc,add) {
	var url = "https://www.paypal.com/cgi-bin/webscr?cmd=" + cmd + "&business=" + business + "&item_name=" + item_name + "&item_number=" + item_number + "&amount=" + amount + "&currency_code=" + currency_code + "&lc=" + lc + "&add=" + add;
	window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=600,height=450');
}

function Add_To_Paypal(item_name,item_number,amount) {
	document.paypal.item_name.value = item_name;
	document.paypal.item_number.value = item_number;
	document.paypal.amount.value = amount;
	document.paypal.submit();
}

