
  function SelStatus() {
    
    Item = f.Status.selectedIndex;
    //TestVar = f.location.options[Item].text;
    var obj = document.getElementById('her')
    var objP = document.getElementById('him')
    var objN = document.getElementById('names')
    
	if (Item == 1) {
		//alert ('Please select Client. You can also e-mail the uploaded document as attachment by selecting the Send File checkbox.');
		objP.style.display = ""; 
		obj.style.display = "none"; 
		objN.style.display = "none";
	} if (Item == 2) {
		objP.style.display = "none"; 
		obj.style.display = "";
		objN.style.display = "none";
	} if (Item == 3) {
		objP.style.display = "";
		obj.style.display = "";
		objN.style.display = "";
	} if (Item == 0) {
		objP.style.display = "none";
		obj.style.display = "none";
		objN.style.display = "none";
	} else {
	}

  }
  

/* was seperted before from here */



  function SelCountry() {
    
    Item = f.Country.selectedIndex;
    //Item = f.Country.options[Item].text;
    var zip = document.getElementById('zip')
    var postal = document.getElementById('postal')
    var OtherCntr = document.getElementById('OtherCntr')

    
		postal.style.display = ""; 
		OtherCntr.style.display = ""; 
		zip.style.display = "none"; 
		f.OtherCntr.focus();

  }
  

/* was seperted before from here */


  function SelUSA() {
    
    Item = f.Country.selectedIndex;
    //Item = f.Country.options[Item].text;
    var zip = document.getElementById('zip')
    var postal = document.getElementById('postal')
    var OtherCntr = document.getElementById('OtherCntr')

    
		postal.style.display = "none"; 
		OtherCntr.style.display = "none"; 
		zip.style.display = ""; 
 
 }
  /* was seperted before from here */


    function OpenDescr()
    {
    if (!document.getElementById) return;
    
    var obj = document.getElementById('Descr')
    if (obj.style.display == "none")
    obj.style.display = "";
    else
    obj.style.display = "none";
   }
  
	//--></script>

  <script language="JavaScript"><!--
    function OpenWarn()
    {
    if (!document.getElementById) return;
    
    var obj = document.getElementById('Warn')
    if (obj.style.display == "none")
    obj.style.display = "";
    else
    obj.style.display = "none";
   }
  
/* was seperted before from here */


function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; }}function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; }} function mClk(src) { if(event.srcElement.tagName=='TD'){src.children.tags('A')[0].click();} }
function opennewwindow(url,winname,params) { res=window.open(url,winname,params); if (window.focus) { res.focus(); }} </script>





function Validator(theForm)
{

  if (theForm.mName.value == "")
  {
    alert("Please enter a value for the \"SexxyMofo Screen Name\" field.");
    theForm.mName.focus();
    return (false);
  }

  if (theForm.mName.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"SexxyMofo Screen Name\" field.");
    theForm.mName.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789--&";
  var checkStr = theForm.mName.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"-&\" characters in the \"SexxyMofo Screen Name\" field.");
    theForm.mName.focus();
    return (false);
  }

  if (theForm.Pwd.value == "")
  {
    alert("Please enter a value for the \"password\" field.");
    theForm.Pwd.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-";
  var checkStr = theForm.Pwd.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter and digit characters in the \"password\" field.");
    theForm.Pwd.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"e-mail\" field.");
    theForm.Email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@-._";
  var checkStr = theForm.Email.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@-._\" characters in the \"e-mail\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Status.selectedIndex == 0)
  {
    alert("The first \"Status\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Status.focus();
    return (false);
  }

  if (theForm.zip.value == "")
  {
    alert("Please enter a value for the \"zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f";
  var checkStr = theForm.zip.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and whitespace characters in the \"zip\" field.");
    theForm.zip.focus();
    return (false);
  }

  if (theForm.Title.value == "")
  {
    alert("Please enter a value for the \"your SexxyMofo Introduction\" field.");
    theForm.Title.focus();
    return (false);
  }

  if (theForm.Title.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"your SexxyMofo Introduction\" field.");
    theForm.Title.focus();
    return (false);
  }

  if (theForm.Title.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"your SexxyMofo Introduction\" field.");
    theForm.Title.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789--!., \t\r\n\f";
  var checkStr = theForm.Title.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit, whitespace and \"-!.,\" characters in the \"your SexxyMofo Introduction\" field.");
    theForm.Title.focus();
    return (false);
  }

  if (theForm.swap.selectedIndex == 0)
  {
    alert("The first \"Swapping preference\" option is not a valid selection.  Please choose one of the other options.");
    theForm.swap.focus();
    return (false);
  }

  if (theForm.Status.selectedIndex == 2) 
  {
  	if  (theForm.PreferenceF.selectedIndex == 0)
    {
    alert("The first \"Her Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.PreferenceF.focus();
    return (false);
    }
    
  	if  (theForm.bdMf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdMf.focus();
    return (false);
    }

  	if  (theForm.bdDf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Day\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdDf.focus();
    return (false);
    }

  	if  (theForm.bdYf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Year\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdYf.focus();
    return (false);
    }

  	if  (theForm.HeightF.selectedIndex == 0)
    {
    alert("The first \"Her Height\" option is not a valid selection.  Please choose one of the other options.");
    theForm.HeightF.focus();
    return (false);
    }
    
  	if  (theForm.WeightF.selectedIndex == 0)
    {
    alert("The first \"Her Weight\" option is not a valid selection.  Please choose one of the other options.");
    theForm.WeightF.focus();
    return (false);
    }
    
  	if  (theForm.EyeColorF.selectedIndex == 0)
    {
    alert("The first \"Her Eye Color\" option is not a valid selection.  Please choose one of the other options.");
    theForm.EyeColorF.focus();
    return (false);
    }
    
  	if  (theForm.SmokingF.selectedIndex == 0)
    {
    alert("The first \"Her Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.SmokingF.focus();
    return (false);
    }
    
  	if  (theForm.DrinkingF.selectedIndex == 0)
    {
    alert("The first \"Her Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.DrinkingF.focus();
    return (false);
    }
  }

  if (theForm.Status.selectedIndex == 1) 
  {
  	if  (theForm.PreferenceM.selectedIndex == 0)
    {
    alert("The first \"His Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.PreferenceM.focus();
    return (false);
    }
    
  	if  (theForm.bdMm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdMm.focus();
    return (false);
    }

  	if  (theForm.bdDm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Day\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdDm.focus();
    return (false);
    }

  	if  (theForm.bdYm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Year\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdYm.focus();
    return (false);
    }

  	if  (theForm.HeightM.selectedIndex == 0)
    {
    alert("The first \"His Height\" option is not a valid selection.  Please choose one of the other options.");
    theForm.HeightM.focus();
    return (false);
    }
    
  	if  (theForm.WeightM.selectedIndex == 0)
    {
    alert("The first \"His Weight\" option is not a valid selection.  Please choose one of the other options.");
    theForm.WeightM.focus();
    return (false);
    }
    
  	if  (theForm.EyeColorM.selectedIndex == 0)
    {
    alert("The first \"His Eye Color\" option is not a valid selection.  Please choose one of the other options.");
    theForm.EyeColorM.focus();
    return (false);
    }
    
  	if  (theForm.SmokingM.selectedIndex == 0)
    {
    alert("The first \"His Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.SmokingM.focus();
    return (false);
    }
    
  	if  (theForm.DrinkingM.selectedIndex == 0)
    {
    alert("The first \"His Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.DrinkingM.focus();
    return (false);
    }
  }


  if (theForm.Status.selectedIndex == 3) 
  {
  	if  (theForm.PreferenceF.selectedIndex == 0)
    {
    alert("The first \"Her Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.PreferenceF.focus();
    return (false);
    }
    
  	if  (theForm.bdMf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdMf.focus();
    return (false);
    }

  	if  (theForm.bdDf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Day\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdDf.focus();
    return (false);
    }

  	if  (theForm.bdYf.selectedIndex == 0)
    {
    alert("The first \"Her Birthday Year\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdYf.focus();
    return (false);
    }

  	if  (theForm.HeightF.selectedIndex == 0)
    {
    alert("The first \"Her Height\" option is not a valid selection.  Please choose one of the other options.");
    theForm.HeightF.focus();
    return (false);
    }
    
  	if  (theForm.WeightF.selectedIndex == 0)
    {
    alert("The first \"Her Weight\" option is not a valid selection.  Please choose one of the other options.");
    theForm.WeightF.focus();
    return (false);
    }
    
  	if  (theForm.EyeColorF.selectedIndex == 0)
    {
    alert("The first \"Her Eye Color\" option is not a valid selection.  Please choose one of the other options.");
    theForm.EyeColorF.focus();
    return (false);
    }
    
  	if  (theForm.SmokingF.selectedIndex == 0)
    {
    alert("The first \"Her Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.SmokingF.focus();
    return (false);
    }
    
  	if  (theForm.DrinkingF.selectedIndex == 0)
    {
    alert("The first \"Her Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.DrinkingF.focus();
    return (false);
    }

  	if  (theForm.PreferenceM.selectedIndex == 0)
    {
    alert("The first \"His Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.PreferenceM.focus();
    return (false);
    }
    
  	if  (theForm.bdMm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdMm.focus();
    return (false);
    }

  	if  (theForm.bdDm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Day\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdDm.focus();
    return (false);
    }

  	if  (theForm.bdYm.selectedIndex == 0)
    {
    alert("The first \"His Birthday Year\" option is not a valid selection.  Please choose one of the other options.");
    theForm.bdYm.focus();
    return (false);
    }

  	if  (theForm.HeightM.selectedIndex == 0)
    {
    alert("The first \"His Height\" option is not a valid selection.  Please choose one of the other options.");
    theForm.HeightM.focus();
    return (false);
    }
    
  	if  (theForm.WeightM.selectedIndex == 0)
    {
    alert("The first \"His Weight\" option is not a valid selection.  Please choose one of the other options.");
    theForm.WeightM.focus();
    return (false);
    }
    
  	if  (theForm.EyeColorM.selectedIndex == 0)
    {
    alert("The first \"His Eye Color\" option is not a valid selection.  Please choose one of the other options.");
    theForm.EyeColorM.focus();
    return (false);
    }
    
  	if  (theForm.SmokingM.selectedIndex == 0)
    {
    alert("The first \"His Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.SmokingM.focus();
    return (false);
    }
    
  	if  (theForm.DrinkingM.selectedIndex == 0)
    {
    alert("The first \"His Smoking Preferences\" option is not a valid selection.  Please choose one of the other options.");
    theForm.DrinkingM.focus();
    return (false);
    }
  }
  return (true);
}
