<!--
if (self!=top)  {
  alert("Framing of this site is not permitted.");
  parent.top.document.location.href="http://www.lookingsingles.com";
}
var message="Copyright IntraStart CyberBusiness Systems 1994 - 20011. All rights reserved.";
if (document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
function click(e)
{
  if(document.all)  {
    if (event.button == 2) {
				alert(message);
        return false;}}
  if(document.layers)  {
    if (e.which == 3) {
				alert(message);
        return false;}}
}
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if((browserName == "Netscape" && browserVer >= 4) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4))
  version = 4;
else
  if((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 3))
    version = 3;
  else version = 2;
if (version >= 3) {
  ZIPSearchOn = new Image();
  ZIPSearchOn.src = "/images/zipsearchon.gif";
  ZIPSearchOff = new Image();
  ZIPSearchOff.src = "/images/zipsearchoff.gif";
}
function ImgOn(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
function ImgOff(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
function BookMark(){
  window.external.AddFavorite('http://www.lookingsingles.com','Singles Scene');
}
function swSubscribe(OP) {
  var emailOK = "abcdefghijklmnopqrstuvwxyz0123456789. @-_";
  var missinginfo="";
  var tmail=document.zForm.teMail.value.toLowerCase();

  if(tmail == "") {
    missinginfo += "\n     -  eMail address";
    missinginfo += "\n          -FORM: user@home.com";
  }
  else  {
    if((tmail.length < 5) || (tmail.indexOf('@') == -1) || (tmail.indexOf('.') == -1)) {
      missinginfo += "\n     -  Invalid eMail address";
      missinginfo += "\n          -FORM: user@home.com";
    }
    else
      if(tmail.indexOf('@') != tmail.lastIndexOf('@')) {
        missinginfo += "\n     -  Invalid eMail address";
        missinginfo += "\n          -FORM: user@home.com";
      }
      else  {
        for(i=0; i<tmail.length; i++) {
          ch=tmail.charAt(i);
          for(j=0; j<emailOK.length; j++)
            if(ch==emailOK.charAt(j))
            break;
          if(j==emailOK.length)  {
            missinginfo += "\n     -  Invalid character in eMail address";
            missinginfo += "\n          -FORM: user@home.com";
            break;
          }
        }
      }
  }
  if (missinginfo=="")
    var win0 = window.open("/subscribe.htm?OP="+OP+"&EM="+document.zForm.teMail.value, "Subscribe", "status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=560,height=300,top=120,left=120")
  else  {
    missinginfo ="_____________________________\n" +
    "You failed to correctly provide your:\n" +
    missinginfo + "\n_____________________________" +
    "\nPlease re-enter and submit again!";
    alert(missinginfo);
    return;
  }
}
function swViewInBox(OP,ID) {
  document.aForm.OP.value=OP;
  document.aForm.ID.value=ID;
  document.aForm.submit();
}
function swViewProfile(OP,ID,KEY) {
  document.bForm.OP.value=OP;
  document.bForm.ID.value=ID;
  document.bForm.KEY.value=KEY;
  document.bForm.submit();
}
function swViewPhotos(OP,MID) {
  document.cForm.OP.value=OP;
  document.cForm.MID.value=MID;
  document.cForm.submit();
}
function swBrowse(OP,SOP,PG) {
  document.xForm.OP.value=OP;
  document.xForm.SOP.value=SOP;
  document.xForm.PG.value=PG;
  document.xForm.submit();
}
function swForum(OP,ID,PG) {
  document.yForm.OP.value=OP;
  document.yForm.FID.value=ID;
  document.yForm.PG.value=PG;
  document.yForm.submit();
}
function swChatRoom(OP,ID) {
  document.zForm.OP.value=OP;
  document.zForm.ID.value=ID;
  document.zForm.submit();
}
function swZIPSearch(OP) {
  var missinginfo = "";
  var checkOK = "0123456789.-() ";
  var numOK = "0123456789";
	if(!document.wForm.lGender.selectedIndex)
    missinginfo += "\n     -  My Gender";
	else
		document.wForm.Gender.value = document.wForm.lGender.value;
	//
  if(!document.wForm.lSeeking.selectedIndex)
    missinginfo += "\n     -  I\'m Seeking";
	else
		document.wForm.Seeking.value = document.wForm.lSeeking.value;
	//
  if(!document.wForm.lAgeBound0.selectedIndex)
    missinginfo += "\n     -  Lower age limit";
	else
		document.wForm.AgeBound0.value = document.wForm.lAgeBound0.value;
	//
  if(!document.wForm.lAgeBound1.selectedIndex)
    missinginfo += "\n     -  Upper age limit";
	else
		document.wForm.AgeBound1.value = document.wForm.lAgeBound1.value;
	//
	var PostalCode=document.wForm.tPostalCode.value;
	if(PostalCode.length == 0)
  	missinginfo += "\n     -  US ZIP Code";
	else
		if(PostalCode.length < 5)
  		missinginfo += "\n     -  Use 5 Digit US ZIP Code";
		  if(PostalCode.length > 5)
  			missinginfo += "\n     -  Use 5 Digit US ZIP Code";
				for(i=0; i < 5; i++)  {
      		ch = PostalCode.charAt(i);
      		for(j=0; j<checkOK.length; j++)
        		if(ch==numOK.charAt(j))
          		break;
      				if(j==checkOK.length) {
	  		    		missinginfo += "\n     -  Invalid US ZIP Code";
		      			isValid=false;
					      break;
    	  			}
				}
	document.wForm.PostalCode.value=document.wForm.tPostalCode.value;
	document.wForm.Distance.value=document.wForm.lDistance.value;
	//
  if (missinginfo != "") {
    missinginfo ="_____________________________\n" +
    "You failed to correctly provide your:\n" +
    missinginfo + "\n_____________________________" +
    "\nPlease re-enter and submit again!";
    alert(missinginfo);
    return;
  }
  document.wForm.OP.value=OP;
  document.wForm.submit();
}

	function swSendMessage() {
  		var win1 = window.open("/secretmessage/sendmsg.htm?OOP=100", "sendMsg", "status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=560,height=400,top=60,left=100")
	}
	function swFeedback(OP) {
		var win2 = window.open("/contact/sendmsg.html", "sendMsg", "status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=560,height=400,top=60,left=100")
	}
//-->

