<!-- hide this script from non-javascript-enabled browsers
function pop_webloyalty(url,first_time){
	try{
		var width = screen.availWidth * .9;
		var height = screen.availHeight * .9;
		var top = screen.availHeight;
		var left = screen.availWidth;

		if( first_time ){
			var payment_type = '';
			if( document.checkout ){
				for( var i = 0; i < document.checkout.mv_order_profile.length; i++ ){
					if( document.checkout.mv_order_profile[i].checked ) payment_type = document.checkout.mv_order_profile[i].value;
				}
			}else{
				payment_type = 'credit';
			}

			if( payment_type != 'postal' && payment_type != 'check_by_mail' ){
				url = 'https://one-time-offer.com/content/interim_page.html';
				var wl_popup = window.open(url,'webloyalty','height=' + height + ',width=' + width + ',top=' + top + ',left=' + left + ',toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1');
				wl_popup.blur();
			}
		}else{
			var width = screen.availWidth * .9;
			var height = screen.availHeight * .9;
			var top = screen.availHeight;
			var left = screen.availWidth;
			var wl_popup = window.open(url,'webloyalty','height=' + height + ',width=' + width + ',top=' + top + ',left=' + left + ',toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1');

			wl_popup.focus();
			if(navigator.appName.indexOf("Microsoft") == -1 ) {self.blur();}
		}
	}catch(ex){ }
}

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) {
	g_openWindow(page, 520, 266, 'contest');

}

function pop_list(page) {
	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_bml(page) {
	g_openWindow(page, 770, 510, 'bml', 'yes', 'yes');
}
function g_openWindow(page, height, width, win, scrollbars, resizable, toolbar, menubar)
{
	if (!height)
		height = 400;
	if (!width)
		width = 560;
	if (!win)
		win = "_new"
	var h, w, scrol, siz;
	w = "WIDTH=" + width.toString();
	h = "HEIGHT=" + height.toString();
	scrol = ",scrollbars=" + ( (scrollbars) ? "yes" : "no" );
	siz = ",resizable=" + ( (resizable) ? "yes" : "no" );
	tool = ",toolbar=" + ( (toolbar) ? "yes" : "no" );
	menu = ",menubar=" + ( (menubar) ? "yes" : "no" );
	attr = w + "," + h + scrol + siz + tool + menu;
	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){}
}

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("index.html","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;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// 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;
		}
	}
	@end @*/
	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 -->