<!-- Hide script from older browsers

/*	rolloverNav.js
	Function to change the background color on a rolled-over cell  
	in the gold nav bar.
	Found on all pages.                                          */

function rolloverNav (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#272421";}

function rolloutNav (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#663300";}


function rolloverNavx (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#998c67";}

function rolloutNavx (eventSource) {if (navigator.appName == "Microsoft Internet Explorer") eventSource.style.backgroundColor = "#998c67";}


function NewWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=460,left =312,top= 184');");
}



PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

function changecss(myclass,element,value) {
if (! document.styleSheets) return
var CSSRules = (document.all) ? 'rules' : 'cssRules';
for (var i = 0; i < document.styleSheets.length; i++) {
for (var j = 0; j < document.styleSheets[i][CSSRules].length; j++) {
if (document.styleSheets[i][CSSRules][j].selectorText == myclass) {
document.styleSheets[i][CSSRules][j].style[element] = value
}
}
}
}
function emailCheck (emailStr) {
var checkTLD=1;
var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
var emailPat=/^(.+)@(.+)$/;
var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
var validChars="\[^\\s" + specialChars + "\]";
var quotedUser="(\"[^\"]*\")";
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
var atom=validChars + '+';
var word="(" + atom + "|" + quotedUser + ")";
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
var matchArray=emailStr.match(emailPat);
if (matchArray==null) {
alert("Email address seems incorrect (check @ and .'s)");
return false;
}
}


function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  //one = document.prdnew.color1inv.value;
  //two = document.prdnew.color2inv.value; 
  //three = document.prdnew.color3inv.value; 
  //four = document.prdnew.color4inv.value; 
  //five = document.prdnew.color5inv.value;
  six = document.prdnew.size1inv.value;
  seven = document.prdnew.size2inv.value;
  eight = document.prdnew.size3inv.value;
  nine = document.prdnew.size4inv.value;
  ten = document.prdnew.size5inv.value;

//(one * 1) + (two * 1) + (three * 1) + (four * 1) + (five * 1)

  document.prdnew.invnt.value = (six * 1) + (seven * 1) + (eight * 1) + (nine * 1) + (ten * 1);
}
function stopCalc(){
  clearInterval(interval);
}
// End hiding script -->