// JavaScript Document
<!--
function submitform(form)
 {
  form.submit();
 }
function GOTOPage(){
 var optnum = document.CrossRefList.ListSelection.selectedIndex;
 location.href = document.CrossRefList.ListSelection.options[optnum].value +'/index.htm';
}

function GoMachineModelCatalogPage(){
 var optnum = document.ListMachineModelCatalog.ListMachineModelCatalogselect.selectedIndex;
 location.href = 'http://www.aussie-battery.com/'+ document.ListMachineModelCatalog.ListMachineModelCatalogselect.options[optnum].value +'.htm';
}

function GoPartNoCatalogPage(){
 var optnum = document.ListPartNoCatalog.ListPartNoCatalogselect.selectedIndex;
 location.href = 'http://www.aussie-battery.com/'+ document.ListPartNoCatalog.ListPartNoCatalogselect.options[optnum].value +'.htm';
}
function GoHotBrandCatalogPage(){
 var optnum = document.ListHotBrandCatalog.ListHotBrandCatalogselect.selectedIndex;
 location.href = 'http://www.aussie-battery.com/'+ document.ListHotBrandCatalog.ListHotBrandCatalogselect.options[optnum].value +'.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_name.value == "") {
	  alert ("Please input Your Name:");
	  return false;
	}
  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 receiver's name");
	  return false;
	}
	if (document.email_friend.to_email_address.value == "") {
	  alert ("Please input your receiver's email address:");
	  return false;
	}
	if (document.email_friend.subject.value == "") {
	  alert ("Please input your message subject:");
	  return false;
	}
	if (document.email_friend.message.value == "") {
	  alert ("Please input your message:");
	  return false;
	}
	return true;
  }
  
function navbarOver(src,clrOver,clrOverBorder) { if (!src.contains(event.fromElement)){ src.style.cursor = 'hand'; src.bgColor = clrOver; src.borderColor = clrOverBorder; src.children.tags('a')[0].style.color='#000000'; }}

function navbarOut(src,clrIn,clrInBorder) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; src.borderColor = clrInBorder; src.children.tags('a')[0].style.color='#333333';}}
//-->
// Flash Image Extension for Dreamwever ,by Yichun Yuan(dezone@sina.com)
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function bookmarkit(){
	window.external.addFavorite('http://www.aussie-battery.com','battery-charger.com.au--All Batteries')
}

//-->

