
<!-- // Flash4 detection script
var flashDetect = 0;
if (navigator.plugins && (document.layers || document.all)){
if ( (navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1) ){
document.writeln(' <script language="VBscript"> ');
document.writeln(' If ScriptEngineMajorVersion >= 2 then ');
document.writeln(' on error resume next ');
document.writeln(' flashDetect = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))');
document.writeln(' End If ');
document.writeln(' <\/script> ');
}
else{
flashDetect = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (flashDetect) flashDetect = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4;
}
}
//---------------------------------------------------------------------------------------Duzeltir
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//Select menu icin
function go_patients(form) 
{
url="list.php?p=t&cl_country_pass="+form.cl_country_pass.value;
parent.location=url;

}//end of go
function go(form) 
{
url="list.php?cl_country_pass="+form.cl_country_pass.value;
parent.location=url;

}//end of go
//-----------------------------Field temizle
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}//end of cleartext
//-----------------------------------Check Check

function checkrequired(which) {
var pass=true;
   if (document.images) {
      

      for (i=0;i<which.length;i++) {
      var tempobj=which.elements[i];
         if (tempobj.name.substring(0,8)=="required") {
		      //---added
			  if (tempobj.defaultValue==tempobj.value)
              tempobj.value = ""
			//-----------
			  
			  
              if (((tempobj.type=="text"||tempobj.type=="textarea")&&
              tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
              tempobj.selectedIndex==0)) {
              pass=false;
              break;
              }
        }
      }
  }
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}//end of function
//----------form validation
function validateJoin1(){

x=document.join1;

at=x.cl_email.value.indexOf("@");

cl_title=x.cl_title.value;
cl_name=x.cl_name.value;
cl_last=x.cl_last.value;
cl_address1=x.cl_address1.value;
cl_address2=x.cl_address2.value;
cl_city=x.cl_city.value;
cl_state=x.cl_state.value;
cl_state2=x.cl_state2.value;
cl_country=x.cl_country.value;

cl_password=x.cl_password.value;
cl_password2=x.cl_password2.value;





submitOK="True";
 if (cl_name == ''){
 alert("Error: First Name");
 submitOK="False";
 
 }else if (cl_last == ''){
 alert("Error: Last Name");
 submitOK="False";
 
 }else if (cl_address1 == ''){
 alert("Error: Address");
 submitOK="False";
 
 }else if (cl_city == ''){
 alert("Error: City");
 submitOK="False";
 
 }else if (cl_state== '' && cl_state2==''){
 alert("Error: State");
 submitOK="False";
 
}else if (cl_country==''){
 alert("Error: Country");
 submitOK="False";
}else if (at==-1){
 alert("Not a valid e-mail");
 submitOK="False";
 }else if(cl_password!=cl_password2 || cl_password==''){
 		
		if(cl_password!=cl_password2){
		alert("You didnt enter the same password");
		}else{
		alert("Please enter a password");
		}
 submitOK="False";
 }



if (submitOK=="False"){
 return false;
 }
} //end of function





dom = (document.getElementById) ? true : false;

ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;

ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;

ns4 = (document.layers && !dom) ? true : false;

ie4 = (document.all && !dom) ? true : false;

nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

//********************************

//detect browser

isNS4 = (document.layers) ? true : false;

isIE4 = (document.all && !document.getElementById) ? true : false;

isIE5 = (document.all && document.getElementById) ? true : false;

isNS6 = (!document.all && document.getElementById) ? true : false;

//-----------------------------------------------------------------------------------

//window acmak icin kullaniyorum tam ortaya

function openWin(name,wid,hei,sbar,title){

	xx=screen.availWidth/2-wid/2;

	yy=screen.availHeight/2-hei/2;

	str="left=" + Math.round(xx) + ",top=" + Math.round(yy);

	

	window.open(name,title,'width='+wid+',height='+hei+',toolbar=no,scrollbars='+sbar+',resizable='+sbar+','+str);

}



function window_c(){

window.close()

}

//---Window netscape e gore resize ediyorum

function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);

//-----------------------------pop3.php add to basket 

function updateParent(newURL) {

		opener.document.location = newURL

	

	}

//------------------------------right click disabled

function disable()

{

if (event.button == 2)

{

alert("Sorry no rightclick on this page.\n")

}}
//------------------------VALIDATION

