// JavaScript Document
var data;
function openpopup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=600,left = 237,top = 84');");
}
function openpopupnew(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=400,left = 237,top = 50%');");
}
function openpopuprequest(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=440,height=290,left = 50%,top = 50%');");
}
function openpopupcontactus(popurl){
winpops=window.open(popurl,"","width=600,height=500,scrollbars=yes,left=225',top=50")
}
function closewindow()
  {
    this.close()
  }
 function req(popurl){
winpops=window.open(popurl,"","width=410,height=240,left=225',top=50")
}
function closewindow()
  {
    this.close()
  }
function add_to_faw()
{
bookmarkurl="http://www.overstockperfume.com"
bookmarktitle="Overstock Perfume"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
/*DIV POPUP*/
function showme(name){
var boxwidth = document.getElementById("brand-description").style.width;
var boxheight = document.getElementById("brand-description").style.height;
 var sw = (screen.width - boxwidth.substring(0,3)) / 3;
 var sh = (screen.height - boxheight.substring(0,3))/3;
 document.getElementById("brand-description").style.display="block";
 document.getElementById("brand-description").style.left=sw;
 document.getElementById("brand-description").style.top=sh;
 document.getElementById("myname").innerHTML=name; 
}
function hide(){
 document.getElementById("brand-description").style.display="none";
}
/*Display Data in DIV*/
function outofstock(){
document.getElementById("ostock").style.display="block";
}
/*Datasubmiter*/
function submitForm() {
window.open ("http://ys.satisnet.org/overstock/php/notify.php", "NewWindow","menubar=0,resizable=0,width=350,height=150");
document.myform.submit();
}