var popupWin =null;
var strSealURL='weblogos.dnb.com';
var sealID='42B6CC1B-9E18-459C-B173-9C61662B9E9F';
var strDuns='024357563';
var strRWSPath='express.dnbsearch.com';
var strCountry='US';
var increment='true';
var RootLink = "../";
var RootLinkS = "../";

   function orderNow(dept,cat,prod) {
        location.href="../preorderform.asp?dept=" + dept + "&cat=" + cat + "&prod=" + prod + "&options=" + getOptions(prod);
   }
   
   function getOptions(prod) {
    var lsVal = "";
     //'for ( var i=0; i<document.form2.elements; i++ )
      //'{
        // alert( eval("document.form2.field" + i + ".value") );
     // }
    //if (isObject(eval("document.form2.options_" + prod)) == true) {
        //box.options[box.selectedIndex].value
        //return(eval("document.form2.options_" + prod + "[document.form2.options_" + prod + ".selectedIndex].value"));
        for (var i = 0; i < document.form2.elements.length; i++) {
         if (document.form2.elements[i].name == "options_" + prod) {
           lsVal = lsVal + "," + document.form2.elements[i][document.form2.elements[i].selectedIndex].value;           
         } 
         
       }
        return(lsVal);
    //}
    //else {
    //    return("FRED");
    //}
    
   }   

   function openBig(pProd,wValue,hValue) {
		if (popupWin != null){
			if (navigator.appName == "Netscape") {
				popupWin=null;
				popupWin = pProd;	
				popupWin = window.open(pProd,null,'width=' + wValue + ',height=' + hValue + ',left=' + screen.avalWidth - (wValue/2) + 'screeny=0,top=0,screenx=' + screen.avalWidth - (wValue/2) + ',toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
				popupWin.focus();
				popupWin=null;
				popupWin.close();
			}
			else {
				popupWin.close();
			}
		}
		popupWin = pProd;	
				popupWin = window.open(pProd,null,'left=0,top=0,width=' + wValue + ',height=' + hValue + ',toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
				//popupWin.moveTo(0,0);
        if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") ){
        popupWin.focus();
        }
   }
   
   function openBig2(pProd,wValue,hValue) {
		if (popupWin != null){
			if (navigator.appName == "Netscape") {
				popupWin=null;
				popupWin = pProd;	
				popupWin = window.open(pProd,null,'width=' + wValue + ',height=' + hValue + ',left=' + screen.avalWidth - (wValue/2) + 'screeny=0,top=0,screenx=' + screen.avalWidth - (wValue/2) + ',toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
				popupWin.focus();
				popupWin=null;
				popupWin.close();
			}
			else {
				popupWin.close();
			}
		}
		popupWin = pProd;	
		popupWin = window.open(pProd,null,'width=' + wValue + ',height=' + hValue + ',toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=520');
		//popupWin.moveTo(screen.availWidth-380,0);
        if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") ){
        popupWin.focus();
        }
   }
   
   function SubmitMe(SelectBox) {
		location.href = SelectBox;
   }
   
   function mouseovertd (o){
    o.style.backgroundColor="#5f8cc7";
	o.style.cursor="hand";
	o.style.borderStyle="solid"
	o.style.borderColor="#003366"
	o.style.color="#ffffff"	
}

function mouseouttd (o){
	o.style.backgroundColor="#ededed"
	o.style.color="#003366"
	o.style.borderColor="#e2e2e2"
}

function newscreen4() {
	window.open("","talk","width=300,height=204,resizable=no,scrollbars=auto")
}

if (document.images) {
  
  
  image23off = new Image();
  image23off.src = RootLink + "images/b-checkout_01.gif";
  
  image23on = new Image();
  image23on.src = RootLink + "images/b-checkout_01-over.gif";
  
    image22off = new Image();
    image22off.src = RootLink + "images/b-remove_01.gif";
    
    image22on = new Image();
    image22on.src = RootLink + "images/b-remove_01-over.gif";
    
    image31on = new Image();
    image31on.src = RootLink + "images/compare_01-over.gif";
    
    image31off = new Image();
    image31off.src = RootLink + "images/compare_01.gif";
    
    image25on = new Image();
    image25on.src = RootLinkS + "secure/images/placeorder_01-over.gif";
    
    image25off = new Image();
  image25off.src = RootLinkS + "secure/images/placeorder_01.gif";
}

function turnOn(imageName) {
  if (document.images) {
	//alert(eval(imageName + "on.src"));
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}

function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=103082714133734521', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 

function exp(strTag ,strAttribute){ 
		var elem = document.getElementsByTagName(strTag); 
		var elem1 =window.event.srcElement; 
		for (var i=0;i<elem1.children.length;i++){ 
			elem1.children[i].innerText=="4"?elem1.children[i].innerText="5":elem1.children[i].innerText="4"; 
		} 
		for (var i =0;i<elem.length;i++) { 
			if(elem[i].getAttribute(strAttribute)=="yes") { 
				elem[i].style.display=='none'? elem[i].style.display='block':elem[i].style.display='none'; 
			} 
		} 
	} 
	

var expdate = new Date ();
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000*365)); 


//setCookie('Cookie Name ',this.form.cookieName.value,expdate)


function setCookie(name, value, expires, path, domain, secure) {


var thisCookie = name + "=" + escape(value) +

((expires) ? "; expires=" + expires.toGMTString() : "") +

((path) ? "; path=" + path : "") +

((domain) ? "; domain=" + domain : "") +

((secure) ? "; secure" : "");

document.cookie = thisCookie;

}



