function openwin(winame,file,height,width)  
{

newpop=window.open(file,winame,"status=no,scrollbars=no,resizable=no, toolbar=no,location=no,menu=no,height="+height+",width="+width);
if (document.all){
newpop.moveTo(0,0)

}

}

 function openWindow(url) { popupWin = window.open(url, 'openWin', "width=400, height=250, scrollbars=yes"); } 


function checkform () {
if(document.ItemList.vwattr0_Size.value=="Choose Size") 
{
alert(document.ItemList.vwattr0_Size.value);
return false;
}
else {
if(document.ItemList.vwattr0_Color.value=="Choose Color")
{
alert(document.ItemList.vwattr0_Color.value);
return false;
}
}
return true;
}

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
window.onload = function(){
var formSubmit = document.getElementById("orderForm");
if(formSubmit != null){
if(document.all){
formSubmit.onsubmit = function() {return (checkform() && pageTracker._linkByPost(this,true))};
} else {
formSubmit.setAttribute("onsubmit","return (checkform() && pageTracker._linkByPost(this,true))");
 }
}
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}