function submitform(){document.form.submit()}
function searchform(){document.searchform.submit()}
function jumptopage(pg){document.next.page.value=pg;document.next.submit();}
function showwindow(thewidth,theheight,theurl){
 if (!window.pdWindow){pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");}
 else{
	if (!pdWindow.closed){pdWindow.close();pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");}
  else{pdWindow = window.open(theurl,"PopOpt","width=" + thewidth + ",height=" + theheight + ",toolbar=0,status=0,location=0,menubar=0,scrollbars=yes,resizable=0");}
 }
}
function quickadd(qaid,qaqty){document.quickadd.itemid.value=qaid;document.quickadd.qty.value=qaqty;document.quickadd.submit();}   

//******* ADDED BY ALP Nov 21,2006 *******
function showChat(url){newwindow=window.open(url,"AvivaChat","width=720,height=500,resizable=1,scrollbars=1");if(window.focus){newwindow.focus();}}
function openNew(url){window.location=(url);}
function showUSDinfo(){newwindow=window.open("/usd_info.asp","USDINFO","width=720,height=360,resizable=0,scrollbars=1");if (window.focus) {newwindow.focus();}}
function IAGREE(){if (!document.form.confirmbox.checked == 1){alert('You must "Agree" to the terms of use to proceed!');}else{document.form.submit();}}
function show(obj){document.getElementById(obj).className='unhide';}
function hide(obj){document.getElementById(obj).className='hide';}
function setcookiecur(v){var today=new Date();var exdate=new Date(today.getYear()+1901,today.getMonth(),today.getDate(),0,0,0);document.cookie='currview='+v+'; path=/; expires='+exdate;}
function setcookie(v){setcookiecur(v);window.location=window.location;}
function setSortBy(f){var today=new Date();var exdate=new Date(today.getYear()+1901,today.getMonth(),today.getDate(),0,0,0);document.cookie='sortby='+f+'; expires='+exdate;window.location=window.location;}
//******* END ADDED BY ALP Nov 21,2006 *******