function MM_jumpMenu(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value != -1)	{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}

function MM_jumpMenu1(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value != -1)	{
		//setCookie("state",selObj.options[selObj.selectedIndex].value,90);
		eval(targ+".location='packandsend_locator_list.php?state="+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}

function MM_jumpMenu3(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value != -1)	{
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}

function setCookie(cookieName,cookieValue,nDays) {
	var today = new Date();
	var expire = new Date();
	// if (nDays==null || nDays==0) nDays=1;
   if ( nDays > 0 ) {
      expire.setTime(today.getTime() + 3600000*24*nDays);
   } else {
      expire = null;
   }
   var cookieString = cookieName+"=" + escape(cookieValue) +
         ((expire == null) ? "" : (";expires="+expire.toGMTString())) +
      ";path=/";
	document.cookie = cookieString;
	//alert( "store selected: " + cookieString );
}


function getCookie(cookieName) {
	var theCookie=""+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=="") return "";
	var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length;
	return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
function deleteCookie (cookieName) {
	var today = new Date();
	var expired = new Date(today.getTime() - 48 * 60 * 60 * 1000); // less 2 days
	document.cookie=cookieName + "=null; expires=" + expired.toGMTString();
}

function dumpCookie() {
   if( GetCookie("jtotwname") != null )
      document.write("" + GetCookie('jtotwname') + "");
   else {
      document.write("<a class='franchiseLinkBox' href='/locator.shtml'><img src='/images/nostore_2.jpg' border='0'></a>");
   }
}



function MM_jumpMenu2(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value != -1)	{
	  eval(targ+".location='storedetails.ihtml?storeid="+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
}

/*function setSelect( comboID, value ) {

        gadget = document.getElementById(comboID);

        for( i=0; i < gadget.length     ; i++ ) {
                if ( gadget.options[i].text == value ) gadget.selectedIndex = i;
        }
}*/
