<!-- hide this script from non-javascript-enabled browsers
function MM_findObj(n, d) { //v3.0
  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;
}

/* Functions that swaps images. */
function MM_swapImage() { //v3.0
   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() { //v3.0
  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() { //v3.0
  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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


function isEmailAddress(email)
{
  var result = false
  var index = email.indexOf("@");
  if (index > 0) {
    var pindex = email.indexOf(".",index);
    if ((pindex > index+1) && (email.length > pindex+1))
		result = true;
  }
  return result;
}

function promo_list_check(Eaddress) {
	if (isEmailAddress(Eaddress)) {
	return true;
	} else {
	alert('Please enter a valid email address.');
	return false;
}
}

function pop_priv(page, height, width, win) {
//	var scroll = 0;
//	var h = height;
//	var w = width;
//	if (isNav4()) {
//		scroll = 1;
//		w = w + 18;
//	}
	g_openWindow(page, 400, 402, win, 'safesecure',1);

}

function pop_drop(page) {
	g_openWindow(page, 200, 266, 'drop');
}

function pop_cont(page) {
	return g_openWindow(page, 520, 266, 'contest');
}

function pop_list(page) {
	return g_openWindow(page, 390, 266, 'coupon');
}
function pop_list_check(page,Eaddress) {
	if (isEmailAddress(Eaddress))
	{
		g_openWindow(page, 400, 266, 'coupon');
		return true;
	}
	else
	{
		alert('Please enter a valid email address.');
		return false;
	}
}
function pop_qc(page)
{
	g_openWindow(page, 330, 266, 'quick_coupon');
}
function pop_lost(page) {
	g_openWindow(page, 300, 266, 'lost_pass');

}
function pop_calc(page) {
	g_openWindow(page, 400, 486, 'lost_pass');

}
function pop_prod(page) {
	g_openWindow(page, 500, 318, 'prodpop');

}
function pop_qgprod(page)
{
	g_openWindow(page, 425, 318, 'quickgiftpop');
}
function pop_bcprod(page)
{
	g_openWindow(page, 475, 318, 'thinkpinkpop');
}
function pop_bml(page) {
	g_openWindow(page, 770, 510, 'bml', 'yes', 'yes');
}
function g_openWindow(page, height, width, win, scrollbars, resizable, toolbar, menubar, top, left) {
	if (! height) height = 400;
	if (! width) width = 560;
	if (! win) win = "_new";
	if (! top) top = 0;
	if (! left) left = 0;
	
	width = "width=" + width.toString();
	height = "height=" + height.toString();
	scrollbars = ",scrollbars=" + ( (scrollbars) ? "yes" : "no" );
	resizable = ",resizable=" + ( (resizable) ? "yes" : "no" );
	toolbar = ",toolbar=" + ( (toolbar) ? "yes" : "no" );
	menubar = ",menubar=" + ( (menubar) ? "yes" : "no" );
	top = ",top=" + ( (top) ? top.toString() : "0" );
	left = ",left=" + ( (left) ? left.toString() : "0" );
	
	attr = width + "," + height + scrollbars + resizable + toolbar + menubar + top + left;	
	popupWin = window.open(page, win, attr);
	
	//Added the try/catch around the focus incase a pop-up blocker stops the window from being created
	try {
		popupWin.focus();
	}
	catch(ex) {
	}
	return false;
}

if (document.all || document.getElementById)
	document.write('<div id=balloonHelp style="width:300px;position:absolute;visibility:hidden;z-index:1"></div>');

var myIFrame;
function notify(w) {
    myIFrame = w;
}
function IScroll(theAnchor)
   {	
  var y;	
    if (myIFrame.document.getElementById(theAnchor)) {
      if (y = myIFrame.document.getElementById(theAnchor).offsetTop) {
      myIFrame.scrollTo( 0, y );
	}
}
   }
function addBookmark() {
    if (isMac()) {
	alert("Hold CMD and hit D on your keyboard to bookmark this site.");
	}
    else if (document.all) {
        window.external.AddFavorite("http://www.fragrancenet.com","FragranceNet.comï¿½ - 1-800-PARFUMS - Online Since 1997 - Perfume, Cologne, Skincare, Candles at Deep Discounts");
    } else {
        alert("Hold CTRL and hit D on your keyboard to bookmark this site.");
    }
}

function isNav4() {
	var app = navigator.appName;
	var ver = navigator.appVersion;
	if ((app == "Netscape") && (parseInt(ver) < 5)) {
		return true;
	}else{
		return false;
	}
}
function isMac() {
	if (navigator.appVersion.indexOf("Mac")!=-1) {
	return true; 
	} else {
	return false;
	}
}

// This fucntion will uncheck all checkboxes listed on a page when called
function uncheckall() {
	// document.myform.mv_order_item
	if (document.getElementById("myform") !== null) {
		for (i = 0; i < document.myform.mv_order_item.length; i++)
			document.myform.mv_order_item[i].checked = false;
	}
}

//if (isNav4()) {
//	document.writeln('<link rel="STYLESHEET" type="text/css" href="/style/style_nn4.css">');
//} else {
//	document.writeln('<link rel="STYLESHEET" type="text/css" href="/style/style.css">');
//}

MM_reloadPage(true);

//Shorthand function
function $(ele){ return document.getElementById(ele); }


function getXMLHttpRequestObject(){
	var xmlhttp=false;
	
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}catch (E) {
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	
	return xmlhttp;
}


/*
AddEvent Manager (c) 2005-2006 Angus Turnbull http://www.twinhelix.com
Free usage permitted as long as this credit notice remains intact.
*/

if (typeof addEvent != 'function'){
 var addEvent = function(o, t, f, l){
  var d = 'addEventListener', n = 'on' + t, rO = o, rT = t, rF = f, rL = l;
  if (o[d] && !l) return o[d](t, f, false);
  if (!o._evts) o._evts = {};
  if (!o._evts[t]){
   o._evts[t] = o[n] ? { b: o[n] } : {};
   o[n] = new Function('e',
    'var r = true, o = this, a = o._evts["' + t + '"], i; for (i in a) {' +
     'o._f = a[i]; r = o._f(e||window.event) != false && r; o._f = null;' +
     '} return r');
   if (t != 'unload') addEvent(window, 'unload', function(){
    removeEvent(rO, rT, rF, rL);
   });
  }
  if (!f._i) f._i = addEvent._i++;
  o._evts[t][f._i] = f;
 };
 addEvent._i = 1;
 var removeEvent = function(o, t, f, l){
  var d = 'removeEventListener';
  if (o[d] && !l) return o[d](t, f, false);
  if (o._evts && o._evts[t] && f._i) delete o._evts[t][f._i];
 };
}

// stop hiding -->


