function openme(){
menu1.style.top = 390;
menu1.style.left= 0;
menu1.style.backgroundColor  = "#C0C0C0";

}
function window_onload() {
menu1.style.top = 390;
menu1.style.left= -700;
}
function closeme() {
menu1.style.top = 390;
menu1.style.left= -700;
}

function openTourWindow(url,width,height){
var Win=window.open(url,"OpenTourWindow",'width='+width+',height='+height+',resizable=yes,scrollbars=yes');
}
function fieldcheck(){
if (searchform.state.value == "ash") {
   if (searchform.T1.value == ""){
      alert("You must insert the last name ...!")
      searchform.T1.focus();
      return false;
     }
   


  }
if (searchform.state.value == "saz") {
   if (searchform.T2.value == ""){
      alert("You must insert the Organization name ...!")
      searchform.T2.focus();
      return false;
     }
  }
if (searchform.state.value == "she") {
   if (searchform.T2.value == "" && searchform.T3.value == ""){
      alert("You must insert the Company name or Activity type ...!")
      searchform.T2.focus();
      return false;
     }
  }

}
function rediobut_onclick(str){
if (str == "ash") {
searchform.state.value = "ash";
searchform.T3.disabled = true;
searchform.T3.style.backgroundColor = "gray";
searchform.T1.disabled = false;
searchform.T1.style.backgroundColor = "white";
l1.innerHTML = "<font color='ffff00' face='Tahoma' size='2'> &nbsp;: نام خانوادگي  </font>";
l2.innerHTML = "<font face='Tahoma'color='00ffff' size='2'>&nbsp;:&nbsp;نام </font>";
searchform.action = "../search/per.asp"
}

if (str == "saz") {

searchform.state.value  = "saz";
searchform.T3.disabled = false;
searchform.T3.style.backgroundColor = "white";
searchform.T1.disabled = true;
searchform.T1.style.backgroundColor = "gray";
l1.innerHTML = "<font color='00ffff' face='Tahoma' size='2'> &nbsp;: نام خانوادگي  </font>";
l2.innerHTML = "<font color='ffff00' face='Tahoma' size='2'>&nbsp;:&nbsp;نام سازمان</font>";
searchform.action = "../search/org.asp"
}



if (str == "she") {
searchform.state.value = "she";
searchform.T3.disabled = false;
searchform.T3.style.backgroundColor = "white";
searchform.T1.disabled = true;
searchform.T1.style.backgroundColor = "gray";
l1.innerHTML = "<font color='00ffff' face='Tahoma' size='2'> &nbsp;: نام خانوادگي  </font>";
l2.innerHTML = "<font face='Tahoma'color='00ffff' size='2'>&nbsp;:&nbsp;نام شركت</font>";
searchform.action = "../search/com.asp"
}

}
function logcheck() {
 if (login.usern.value == "" ) {
  alert("You must enter your user name ...!")
  login.usern.focus();
      return false;
   }
 if (login.userp.value  == "" ) {
  alert("You must enter your Password ...!")
  login.userp.focus();
      return false;
   }
}

function groupcheck1(fieldg){
if (fieldg.value == 0) {
  alert("Choice one of the ...!");
   fieldg.focus();
   return false;

}
}

