function MOW_swapImgRestore() {
  var i,x,a=document.MOW_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MOW_findObj(n, d) {
  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=MOW_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MOW_swapImage() {
  var i,j=0,x,a=MOW_swapImage.arguments; document.MOW_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MOW_findObj(a[i]))!=null){document.MOW_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MOW_preloadImages() {
  var d=document; if(d.images){ if(!d.MOW_p) d.MOW_p=new Array();
    var i,j=d.MOW_p.length,a=MOW_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MOW_p[j]=new Image; d.MOW_p[j++].src=a[i];}}
}

function addBookmark(url,title) {
  if (window.sidebar) {
    window.sidebar.addPanel(title, url,'');
  }
  else if( window.external ) {
    window.external.AddFavorite( url, title);
  }
  else if(window.opera && window.print) {
    return true;
  }
}

function Show(obj)
{
                document.all(obj).style.display =''
}

function Hide(obj)
{
                document.all(obj).style.display="none"
}



function nr(e){return(e.which==3)?false:true}function cu(){return false}function cv(){vp=event.button;if(vp==2||vp==3)alert(unescape("This function is not available."))}io=document.all;ae=document.getElementById;if(io){if(ae){document.oncontextmenu=cu}else{document.onmousedown=cv}}if(ae&&!io){document.onmouseup=nr;document.oncontextmenu=cu}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=nr}

///////////////////////////////////////// login ////////////////////////////////

function check_form_login() {
    validity = true;
	if (!check_value(document.form_login.username.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter a username in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_login.password.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter a password in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////////// singup ///////////////////////////////////////

function check_form_signup() {
    validity = true;
	if (!check_value(document.form_signup.username.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your username in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_signup.password.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your password in the field !'; Sexy.alert(msg); return validity;}
	if (document.form_signup.password.value!==document.form_signup.repass.value) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please repeat your password in the field !'; Sexy.alert(msg); return validity;}
	if (!check_email(document.form_signup.email.value)) { validity = false;  msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Require valid email !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_signup.check_code.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please insert checking code in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////////// send pass /////////////////////////////////////

function check_form_send_pass() {
    validity = true;
	if (!check_value(document.form_send_pass.username.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your username in the field !'; Sexy.alert(msg); return validity;}
	if (!check_email(document.form_send_pass.email.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your email in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////////// profile ///////////////////////////////////////

function check_form_profile() {
    validity = true;
	if (!check_value(document.form_profile.nick.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your nickname in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.name.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your real name in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.age.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your real age in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.profile_age.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your profile age in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.looks.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your overall looks in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.ethnic.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your ethnic background in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.body.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your body type in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.height.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your height in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.weight.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your weight in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.hair.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your hair color in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.eyes.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your eyes color in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.address.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your address in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.zip.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your zip in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.city.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your city in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile.country.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please select your country in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////////////// profile lang ///////////////////////////////////////////////
function check_form_profile_lang() {
    validity = true;
	if (!check_value(document.form_profile_lang.descr.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your description in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile_lang.likes.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter what you like in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_profile_lang.dislike.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter what you dislike in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////////////// countries /////////////////////////////////

function check_form_countries() {
    validity = true;
	if (!check_value(document.form_countries.countries.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please Insert a country or more !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
///////////////////////////////////// picture ////////////////////////////////////////

function check_form_profile_Picture() {
    validity = true;
	if (!check_value(document.form_profile_Picture.userpic.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please insert a picture first !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
/////////////////////////////////////// compose ///////////////////////////////////////

function check_form_compose() {
    validity = true;
	if (!check_value(document.form_compose.user.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your member username in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_compose.title.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your title in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_compose.description.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your message in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_compose.check_code.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please insert checking code in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }
////////////////////////////////// order ////////////////////////////////////////////////

function check_form_order() {
    validity = true;
	if (!check_value(document.form_order.pay_User_ID.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your user ID in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.pay_Card_Name.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your card name in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.pay_First_Name.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your first name in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.pay_Last_Name.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your last name in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.pay_Address.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your address in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.city.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your city in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.country.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your country in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form_order.pay_Zip_Code.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your zip code in the field !'; Sexy.alert(msg); return validity;} return validity;
  }
  function check_value(text) {
    if (text.length > 0) return true;
    else return false;
  }
  function check_email(text) {
    if ((text.length > 0) && (text.indexOf ('@') > -1) || (text.indexOf ('.') > -1)) {
      return true;
    }
    else {
      return false;
    }
  }