function chkPrice(){
val=item_price.innerHTML;
if(item_price.innerHTML.substring(0,4)=="Call"){
qty.innerHTML="";
buy_btn.innerHTML="";}}
function chkDesc(){
Cstatus=(description.innerText=="");
if(Cstatus==true){content_head.innerHTML="";}}
function chkUpgrade(){
Cstatus=(upgrade.innerText=="");
if(Cstatus==true){upgrade.innerHTML="<tr><td>None</td></tr>";}}
function preprocess(iWishList){ 
var retval, iItemqty, iTotalqty;
for (count=0;count<document.forms.length;count++){
if (document.forms[count].name=="frmRelated"){	
var sItemList="";
for(index=0;index<(document.frmRelated.elements.length);index++) {
if(document.frmRelated.elements[index].checked){
sItemList+=document.frmRelated.elements[index].value + "," ;
iItemqty++;}}
sItemList = sItemList.substring(0,sItemList.length-1)
document.frmAdd.chkItems.value = sItemList;}}
document.frmAdd.submit();}
function preprocess2(iIndex,iType,ic,agent){ 
var qtyVal,submitString
submitString=""
qtyVal=document.frmadd["qty"+iIndex].value
submitString="$URL$/gocart.asp?ic=" + ic +"&type=" + iType + "&agent=" + agent + "&qty=" + qtyVal
document.location=submitString}
var enableSelected;
var catSelected;
function  selectthis(){
catSelected=document.selectcombo.combo1.options[document.selectcombo.combo1.options.selectedIndex].text
enableSelected=document.selectcombo.combo1.options[document.selectcombo.combo1.options.selectedIndex].value
if(enableSelected=="default")
return false;
else location.href=enableSelected;}
function submitMainsearch(){ 
if (document.frmMainsearch.SearchWord.value.indexOf(" ") == 0){
alert("Search string should not start with spaces.");
document.frmMainsearch.SearchWord.focus();
return false;}
if (document.frmMainsearch.SearchWord.value == ""){
alert("Please enter a Search String.");
document.frmMainsearch.SearchWord.focus();
return false;}	
document.frmMainsearch.submit();
return true;}
