  function popUp(URL) {
    //day = new Date();
    //id = day.getTime();
    id = "MothersDay";
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=768,left = 262,top = 0');");
  }

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
  
  function writeMarquee() {
	document.write("<marquee scrolldelay='250' scrollamount='5'><b><font face='arial, verdana, helvetica, sans-serif' color='#666600'>TAKING ORDERS FOR DELIVERY IN SYDNEY METROPOLITAN ONLY $12.00 FREIGHT & HANDLING EACH HAMPER</font></b></marquee>");
  }

  function mailpage(){
    mail_str = "mailto:?subject=Check out the " + document.title;
    mail_str += "&body=I thought you might be interested in the " + document.title;
    mail_str += ".  You can view it at, " + location.href + ".";
    location.href = mail_str;
  }

  function fM(){
    //name of the frameset page (be sure to add path info)
    var frameset = "NavigationHampers.htm";

    //name of the frame to load document into
    var frame = "mainH";

    page = new String(self.document.location.pathname);
    //if browser frame enabled??
   	if(window.name != frame){
      	var contents = frameset + "?" + page + "&" + frame;
     	top.location.replace(contents);
   	}
    return;
  }

  function lD(){ // redundant function
    //an array containing the querystring portion of the URL
    // of the page being loaded into this frame
    var query = window.location.search.split('&');

    //the first member of that array (without the "?"): the page name
    var page = query[0].substr(1);

    //the second member of that array: the frame name
    var frame = query[1];

    if(page && frame){
      //only do the replacement if there was a querystring to parse
      var contents = "top." + frame + ".location.replace('" + page + "')";
      	eval(contents);
    }
    return;
  }

  function find(what) {
      for (var i=0;i<parent.frames.length;i++)
           if (parent.frames[i].name == what)
               return true;
      return false;
  }

  function find_(what) {
      for (var i=0;i<parent.parent.frames.length;i++)
           if (parent.parent.frames[i].name == what)
               return true;
      return false;
  }

// To target the parent frame you can use <a href="page.htm" target="_parent"> in HTML. In Javascript you use:
//parent.location.href = 'page.htm';   
  
// To target a specific frame within a frameset you can use <a href="page.htm" target="thatframe"> in HTML. In Javascript you use:
//top.frames['thatframe'].location.href = 'page.htm';   

//To target a specific iframe within the current page you can use <a href="page.htm" target="thatframe"> in HTML. In Javascript you use:
//self.frames['thatframe'].location.href = 'page.htm'; 
  
  function mu() {
//	alert (location.href);
//      for (var i=0;i<parent.frames.length;i++) {
//		alert (i + "parent " + parent.frames[0].name);
//      for (var i=0;i<parent.parent.frames.length;i++) {
//		alert (i + "parent.parent " + parent.parent.frames[0].name);
	if (parent.frames.length != 0 && parent.frames[0].name == 'head') // loaded in frames
	    parent.parent.frames[2].location.href = location.href;  //frame "main"
  }

  function tc() {
	DeleteCookie('cookietest', '/', '');
	SetCookie( 'cookietest', 'accept', '', '/', '', '' );
	if ( !GetCookie( 'cookietest' ) ) alert( "Please accept cookies for shopping!" );
	DeleteCookie('cookietest', '/', '');
  }
