<!--
//deluxe.js
// QuickFind 
// Used inside common_header.jsp to display the Quick Find drop down that appears on the header.
// Used in all .tpls

function jumpurl(formName) {
	var selected = formName.URL.options[formName.URL.selectedIndex];
	formName.URL.options[0].selected = true;
	selectArray = selected.value.split(",");
	if (selectArray[0].toString() != "#"){
		var randNum = Math.random();
		var winName = randNum.toString().substring(2);
		if (selectArray[0].toString() == "1"){
			window.open(selectArray[1].toString(), winName, "top=25,left=25,screenX=25,screenY=25,toolbar=1,location=1,directories=1,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=400");
		} else if (selectArray[0].toString() == "5") {
			redirectUniqueLink(selectArray[1].toString(),selectArray[2].toString());
		} else if (selectArray[0].toString() == "6") {
			redirectUniqueLinkPopUp(selectArray[1].toString(),selectArray[2].toString(),'orderWin');
		} else{
			parent.location = selectArray[1].toString();
		}
	}
}

// Print window
// Used on Accessories pages

function printIt(){
        bV = parseInt(navigator.appVersion)
   	if (bV >= 4)
		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);//Use a 1 vs. a 2 for a prompting dialog box
		WebBrowser1.outerHTML = "";
        }
}

//Function to assign a unique parameter in "clicked" to an URL in "target" for reporting purpose.
//Used for multiple Unique Links pgs

function redirectUniqueLink(clicked,target){
	var bool=target.indexOf("?");
	if (bool > 0) {
		parent.location = target + "&dlxcom=" + clicked;
	}
	else {
		parent.location = target + "?dlxcom=" + clicked;
	}
	return false
}

function redirectUniqueLinkPopUp(clicked,target,windowName){

var bool=target.indexOf("?");
var newLocation;
if (bool > 0) {
	newLocation = target + "&dlxcom=" + clicked;
} else {
	newLocation = target + "?dlxcom=" + clicked;
}

window.open(newLocation, windowName, "top=25,left=25,screenX=25,screenY=25,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=430,height=431");
return false

}


//popup external site content in separate browser window
var popExtWin = -1;
function popUpExt(url,name){
    if (popExtWin  != -1) { 
	// The following line of code was added as Netscape gave problems if we close the windows and again try to open it with out refreshing the page
	// IE will work with out this line.
    	popExtWin=window.open(url,name,'toolbar=no,location=1,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=650,height=500,screenX=30,screenY=10,left=30,top=10');
    	popExtWin.close();
    }
    	popExtWin=window.open(url,name,'toolbar=no,location=1,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=650,height=500,screenX=30,screenY=10,left=30,top=10');
}


//popup content in separate browser 750x550 window, no location bar or directories
var pop750x550Win = -1;
function popUp750x550(url,name){
    if (pop750x550Win  != -1) { 
	// The following line of code was added as Netscape gave problems if we close the windows and again try to open it with out refreshing the page
	// IE will work with out this line.
    	pop750x550Win=window.open(url,name,'toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=750,height=550,screenX=5,screenY=5,left=5,top=5');
    	pop750x550Win.close();
    }
    	pop750x550Win=window.open(url,name,'toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=750,height=550,screenX=5,screenY=5,left=5,top=5');
}



// -->
