
function OpenWindow(url, name){ 
	popupWin = window.open(url, name, 'scrollbars=1,resizable=1,toolbar=0,status=0,width=400,height=315'); 
}


function eu(page2) {
	brand = "http://www.djc.com/cust/brand.phtml";
if(navigator.appName == "Microsoft Internet Explorer"){
	framecode = "<frameset rows='77,*'>" + "<frame src='" + brand + "' scrolling=no NORESIZE>" + "<frame src='" + page2 + "'>" + "</frameset>";
	}
	else{
	framecode = "<frameset rows='85,*'>" + "<frame src='" + brand + "' scrolling=no NORESIZE>" + "<frame src='" + page2 + "'>" + "</frameset>";
	}
page = window.open('','extwind','toolbar=1,menubar=1,status=1,location=1,resizable=1,scrolling=auto,width=640,height=420') ;
page.document.open();
page.document.write(framecode);
page.document.close();
page.focus();
}

function CP_openWin(url, name,height,width){ 
	if(arguments.length < 3){
		height=300;
		width=300;
	}//end if arguments length
	popWin = window.open(url, name, "scrollbars=1 ,resizable=1,toolbar=0,status=0,width="+width+",height="+height+""); 
}//end function cp_openwin

function doCursor(obj,state){
		obj.style.cursor=state;
		return true;
}//end functiondocursor


function doQ(val){
	theForm = document.order;
	len = document.order.length;
	for(var i=0; i<len; i++){
		if(theForm.elements[i].name.substring(0,8) == "quantity"){
			if(val == "n"){
				if(parseInt(theForm.elements[i].value) > 1){
					theForm.elements[i].value = parseInt(theForm.elements[i].value)-1;
				}
			}
			else{
				theForm.elements[i].value = parseInt(theForm.elements[i].value)+1;
			}
		}	
	}//end for loop
}//end function doQ


