<!--
function MM_goToURL() { 
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function netscapeCssFix() { 
  if (document.x.netscapeCssFix.initWindowWidth != window.innerWidth || document.x.netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}
function netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.x == 'undefined'){
      document.x = new Object;
    }
    if (typeof document.x.scaleFont == 'undefined') {
      document.x.netscapeCssFix = new Object;
      document.x.netscapeCssFix.initWindowWidth = window.innerWidth;
      document.x.netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = netscapeCssFix;
  }
}
netscapeCssFixCheckIn()

function doTheClock() {
   window.setTimeout( "doTheClock()", 1000 );
   t = new Date();
   if(document.all || document.getElementById){
      self.status = t.toString();
   }else{   
      self.status = t.toString();
   }
}

//doTheClock()

// Create new date object

var RightNow;
RightNow = new Date();

// Call this function to return the current date 

function date(){
		var Month;
		var Date;
		var Year;

		Month = RightNow.getMonth();
		Date = RightNow.getDate();
		Year = RightNow.getFullYear();

		Month = Month + 1;

		if(Month < 10){
			Month = "0" + Month;
		}

		if(Date < 10){
			Date = "0" + Date;
		}

		Year = Year - 2000;

		if(Year < 10){
			Year = "0" + Year;
		}

document.write(Month + "." + Date + "." + Year);
}
function openAwindow( pageToLoad, winName, width, height, center) {
  xposition=0; yposition=0;
  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
  }
  args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=1," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open(pageToLoad, winName, args);
}

function showblurb(str) {
	var eElem, aDivs = document.all.tags("DIV");
	var iDivsLength = aDivs.length;
	if (str == 'online') {
		for(i=0; i<iDivsLength; i++) {
			eElem = aDivs[i];
			if (eElem.id.indexOf('divOnline') != -1) {
				eElem.style.display = "";
			}
			else {
				if ((eElem.id.indexOf('divOffline') != -1) || (eElem.id.indexOf('divPOrder') != -1)){
					eElem.style.display = "none";
				}
			}
		}
	}
	if (str == 'offline') {
		for(i=0; i<iDivsLength; i++) {
			eElem = aDivs[i];
			if (eElem.id.indexOf('divOffline') != -1) {
				eElem.style.display = "";
			}
			else {
				if ((eElem.id.indexOf('divOnline') != -1) || (eElem.id.indexOf('divPOrder') != -1)){
					eElem.style.display = "none";
				}
			}
		}
	}
	if (str == 'porder') {
		for(i=0; i<iDivsLength; i++) {
			eElem = aDivs[i];
			if (eElem.id.indexOf('divPOrder') != -1) {
				eElem.style.display = "";
			}
			else {
				if ((eElem.id.indexOf('divOnline') != -1) || (eElem.id.indexOf('divOffline') != -1)){
					eElem.style.display = "none";
				}
			}
		}
	}
}

//======================================================
// ValidEmailFormat
function ValidEmailFormat(email) 
{
	atpos = email.indexOf("@"); 
	dotpos=email.lastIndexOf(".");
	var okchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.@[]"
	for (var i = 0; i < email.length; i++) {
		if (okchars.indexOf(email.charAt(i)) == -1) {
			return false;
		}
	}
	if (atpos == "-1" || dotpos == "-1") {
		return false
	}
	if (email.charAt(email.length - 5) != "." && email.charAt(email.length - 4) != "." && email.charAt(email.length - 3) != ".") {
		return false
	}
	if (email.charAt(atpos + 1) == ".") {
		return false
	}
	if (email.length < 6) {
		return false
	}
	return true;
}

//======================================================
// PRELOADING IMAGES
if (document.images) {
 btn_toys_on =new Image();  btn_toys_on.src ="images/buttons/toys_long.gif"; 
 btn_toys_off=new Image();  btn_toys_off.src="images/buttons/toys.gif"; 

 btn_lingerie_on =new Image();  btn_lingerie_on.src ="images/buttons/lingerie_long.gif"; 
 btn_lingerie_off=new Image();  btn_lingerie_off.src="images/buttons/lingerie.gif"; 

 btn_fetish_on =new Image();  btn_fetish_on.src ="images/buttons/fetish_long.gif"; 
 btn_fetish_off=new Image();  btn_fetish_off.src="images/buttons/fetish.gif"; 

 btn_games_on =new Image();  btn_games_on.src ="images/buttons/games_long.gif"; 
 btn_games_off=new Image();  btn_games_off.src="images/buttons/games.gif"; 

 btn_lube_on =new Image();  btn_lube_on.src ="images/buttons/lube_long.gif"; 
 btn_lube_off=new Image();  btn_lube_off.src="images/buttons/lube.gif"; 

 btn_literature_on =new Image();  btn_literature_on.src ="images/buttons/literature_long.gif"; 
 btn_literature_off=new Image();  btn_literature_off.src="images/buttons/literature.gif"; 

 btn_stimulators_on =new Image();  btn_stimulators_on.src ="images/buttons/stimulators_long.gif"; 
 btn_stimulators_off=new Image();  btn_stimulators_off.src="images/buttons/stimulators.gif"; 

 btn_kama_sutra_on =new Image();  btn_kama_sutra_on.src ="images/buttons/kama_sutra_long.gif"; 
 btn_kama_sutra_off=new Image();  btn_kama_sutra_off.src="images/buttons/kama_sutra.gif"; 

 btn_novelties_on =new Image();  btn_novelties_on.src ="images/buttons/novelties_long.gif"; 
 btn_novelties_off=new Image();  btn_novelties_off.src="images/buttons/novelties.gif"; 

 btn_bachelorette_on =new Image();  btn_bachelorette_on.src ="images/buttons/bachelorette_long.gif"; 
 btn_bachelorette_off=new Image();  btn_bachelorette_off.src="images/buttons/bachelorette.gif"; 
}

function movr(k) {
 if (document.images) 
  eval('document.btn_'+k+'.src=btn_'+k+'_on.src');

    switch (k){	
      case "toys":
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "lingerie":
      	mout('toys');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "fetish":
      	mout('toys');
      	mout('lingerie');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "games":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "lube":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "literature":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "stimulators":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "kama_sutra":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('novelties');
      	mout('bachelorette');
        break;
      case "novelties":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('bachelorette');
        break;
      case "bachelorette":
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
        break;
      default:
      	mout('toys');
      	mout('lingerie');
      	mout('fetish');
      	mout('games');
      	mout('lube');
      	mout('literature');
      	mout('stimulators');
      	mout('kama_sutra');
      	mout('novelties');
      	mout('bachelorette');
    }
}

function mout(k) {
 if (document.images) 
  eval('document.btn_'+k+'.src=btn_'+k+'_off.src');
}
/*=====================================================================================================*/
// tellyourfriend.asp */
/*=====================================================================================================*/
function checktellyourfriendform(f) {
	if (document.forms[0].fromname.value == "") {
		alert("Please enter your name.")
		document.forms[0].fromname.focus();
		return false; 
	}
	if (document.forms[0].fromemail.value == "") {
		alert("Please enter your email address.")
		document.forms[0].fromemail.focus();
		return false; 
	}
	else {
		if (!ValidEmailFormat(document.forms[0].fromemail.value)) {
			alert('Please enter a valid e-mail address.');
			document.forms[0].fromemail.focus();
			return false;
		}
	}
	if (document.forms[0].toemail1.value == "") {
		alert("Please enter your friend\'s email address.")
		document.forms[0].toemail1.focus();
		return false; 
	}
	else {
		if (!ValidEmailFormat(document.forms[0].toemail1.value)) {
			alert('Please enter a valid e-mail address for your friend.');
			document.forms[0].toemail1.focus();
			return false;
		}
	}
	if (document.forms[0].toemail2.value != "") {
		if (!ValidEmailFormat(document.forms[0].toemail2.value)) {
			alert('Please enter a valid e-mail address for your friend.');
			document.forms[0].toemail2.focus();
			return false;
		}
	}
	if (document.forms[0].toemail3.value != "") {
		if (!ValidEmailFormat(document.forms[0].toemail3.value)) {
			alert('Please enter a valid e-mail address for your friend.');
			document.forms[0].toemail3.focus();
			return false;
		}
	}
	if (document.forms[0].toemail4.value != "") {
		if (!ValidEmailFormat(document.forms[0].toemail4.value)) {
			alert('Please enter a valid e-mail address for your friend.');
			document.forms[0].toemail4.focus();
			return false;
		}
	}
	if (document.forms[0].toemail5.value != "") {
		if (!ValidEmailFormat(document.forms[0].toemail5.value)) {
			alert('Please enter a valid e-mail address for your friend.');
			document.forms[0].toemail5.focus();
			return false;
		}
	}
	return true;
}
/*=====================================================================================================*/
// guestbook.asp */
/*=====================================================================================================*/
function btnStartOver() {
	var theForm;
	theForm = document.guestbook;
	theForm.submit();
}

function checkguestbookform(theForm) {
	if (theForm.by.value == "") {
		alert("Please enter a value for the \"Name\" field.");
		theForm.by.focus();
		return (false);
	}
	
	if (theForm.strCAPTCHA.value == "") {
		alert("Please enter Enter the number as it is shown in the \"CAPTCHA Image\" field.");
		theForm.strCAPTCHA.focus();
		return (false);
	}
	
	if (theForm.email.value != "") {
		if (!ValidEmailFormat(theForm.email.value)) {
			alert('Please enter a valid Email address.');
			theForm.email.focus();
			return false;
		}
	}

	if (theForm.message.value == "") {
		alert("Please enter a value for the \"Comment\" field.");
		theForm.message.focus();
		return (false);
	}
	return (true);
}
/*=====================================================================================================*/
//-->
