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}
//////////////////////////////////// help ////////////////////////////////////////////

function check_form() {
    validity = true;
	if (!check_value(document.form.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.email.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Require valid email !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form.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.application.value)) { validity = false; msg ='<h1>Message from ' + daten + '</h1>' + '<br/>Please enter your application in the field !'; Sexy.alert(msg); return validity;}
	if (!check_value(document.form.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;
    }
  }
