// JavaScript Document
<!--
function submitform(form)
 {
  form.submit();
 }
function GOTOPage(){
 var optnum = document.CrossRefList.ListSelection.selectedIndex;
 var href  = document.CrossRefList.ListSelection.options[optnum].value;
 href = href.replace(/dell/i, "replacement-battery-for-dell");
 location.href = href +'/index.htm';
 
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function popupWindow(url,winName) {
  window.open(url,winName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,top=0,left=0,width=460,height=350')
}
function BuyNow(url,winName) {
  window.open(url,winName,'toolbar=yes,location=no,directories=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,top=0,left=0,width='+(screen.width-10)+',height='+(screen.height-10))
}

function checkValue() {
    if (document.quick_find.keywords.value == "") {
	  alert ("Please input search words");
 	  return false;
	 }
	return true;
  }
  
function checkEmailValue() {
    if (document.tell_a_friend.to_email_address.value == "") {
	  alert ("Please input email address");
 	  return false;
	 }
	return true;
  }
function checkemail() {
    if (document.email_friend.from_email_address.value == "") {
	  alert ("Please input your email");
	  return false;
	}
	if (document.email_friend.to_name.value == "") {
	  alert ("Please input your friend's name");
	  return false;
	}
	if (document.email_friend.to_email_address.value == "") {
	  alert ("Please input your friends's email");
	  return false;
	}
	return true;
  }
  
// jump big image
function launchwindow(url){
	window.open(url,"CompatibleModels","width=500,height=500,left=180,top=180,scrollbars=no,resizable=no,menubar=0");  
}
//-->

