	function openit(myurl,winname,stuff){
		window.open(myurl,winname,stuff); 
	}
	
	function linkIt(url) { 
	//location.target='mainCon'; 
	CONTENT.location.href = url;
} 
function changelayer_color(newcolor){   
      if(document.layers){            
 		//thisbrowser="NN4";             
		document.layers["fred"].bgColor=newcolor;         
	  }         
	  if(document.all){ 
            //thisbrowser="ie"     
   		document.all.fred.style.backgroundColor=newcolor;  
      }        
 	  if(!document.all && document.getElementById){        
     	//thisbrowser="NN6";          
   		document.getElementById("fred").style.backgroundColor=newcolor;
		//document.getElementById("fred").style.background=newcolor;                  
 	 }
 }
 
 function changelayer_color2(newcolor){   
      if(document.layers){            
 		//thisbrowser="NN4";             
		document.layers["fred2"].bgColor=newcolor;         
	  }         
	  if(document.all){ 
            //thisbrowser="ie"          
   		document.all.fred2.style.backgroundColor=newcolor;  
      }        
 	  if(!document.all && document.getElementById){        
     	//thisbrowser="NN6";          
   		document.getElementById("fred2").style.backgroundColor=newcolor;
		//document.getElementById("fred").style.background=newcolor;                  
 	 }
 }	
 

 function textCounterNew(field, countfield, maxlimit) {
	 if (field.value.length > maxlimit) {
		 field.value = field.value.substring(0, maxlimit);
	 }
}

 	function rowColorChange(x){
		document.getElementById("row_"+x).style.backgroundColor = "#B2FFB2";
	  }

 	function rowAllColorChange(y){
		for(c=1;c<=y;c++){
			document.getElementById("row_"+c).style.backgroundColor = "";
		}
	  }

 	function row2AllColorChange(y){
		for(c=1;c<=y;c++){
			document.getElementById("row2_"+c).style.backgroundColor = "";
			document.getElementById("row3_"+c).style.backgroundColor = "";
		}
 	}
 
 	var c1=0;
	var t1;
	function timedCount(x) {
		if(c1 % 4 == 0){
			addValueDot 	= "";
			addValueSpace 	= "";
		} else {
			addValueDot 	= addValueDot + ".";
			addValueSpace 	= addValueSpace + " ";
		}
		
		
		eval("document.getElementById('"+x+"').disabled = true;");
		//eval("document.getElementById('"+x+"').setAttribute('disabled','true');"); // mozilla icin
		
		eval("document.getElementById('"+x+"').value = '"+addValueSpace+"     Lütfen Bekleyiniz    " + addValueDot+"';");
		eval("document.getElementById('"+x+"').width = '200';");
		//document.getElementById(x).value = "+addValueSpace+" Please  Wait " + addValueDot+";
		
		//eval(x+"."+y+".value = "+addValueSpace+" Please  Wait " + addValueDot);
		//formPay.paymentButton2.value = addValueSpace + "Please  Wait  " + addValueDot;
		c1=c1+1;
		t1=setTimeout("timedCount('"+x+"')",1000);
	}

	function stopCount(){
		clearTimeout(t);
	}
	
	
	function loadMonth(formName,selectName){
		var SelectOption = new Option("Seçiniz","0");
		var JanuaryOption = new Option("Ocak","01");
		var FebruaryOption = new Option("Şubat","02");
		var MarchOption = new Option("Mart","03");
		var AprilOption = new Option("Nisan","04");
		var MayOption = new Option("Mayıs","05");
		var JuneOption = new Option("Haziran","06");
		var JulyOption = new Option("Temmuz","07");
		var AugustOption = new Option("Ağustos","08");
		var SeptemberOption = new Option("Eylül","09");
		var OctoberOption = new Option("Ekim","10");
		var NovemberOption = new Option("Kasım","11");
		var DecemberOption = new Option("Aralık","12");

		eval(formName+'.'+selectName+'.options[0]=SelectOption');
		eval(formName+'.'+selectName+'.options[1]=JanuaryOption');
		eval(formName+'.'+selectName+'.options[2]=FebruaryOption');
		eval(formName+'.'+selectName+'.options[3]=MarchOption');
		eval(formName+'.'+selectName+'.options[4]=AprilOption');
		eval(formName+'.'+selectName+'.options[5]=MayOption');
		eval(formName+'.'+selectName+'.options[6]=JuneOption');
		eval(formName+'.'+selectName+'.options[7]=JulyOption');
		eval(formName+'.'+selectName+'.options[8]=AugustOption');
		eval(formName+'.'+selectName+'.options[9]=SeptemberOption');
		eval(formName+'.'+selectName+'.options[10]=OctoberOption');
		eval(formName+'.'+selectName+'.options[11]=NovemberOption');
		eval(formName+'.'+selectName+'.options[12]=DecemberOption');

	}
	
	function MM_swapImgRestore() { //v3.0
		  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}

		function MM_preloadImages() { //v3.0
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

		function MM_findObj(n, d) { //v4.01
		  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=MM_findObj(n,d.layers[i].document);
		  if(!x && d.getElementById) x=d.getElementById(n); return x;
		}

		function MM_swapImage() { //v3.0
		  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
 
		var phone_field_length=0;
		function TabNext(obj,event,len,next_field) {
			if (event == "down") {
				phone_field_length=obj.value.length;
				}
			else if (event == "up") {
				if (obj.value.length != phone_field_length) {
					phone_field_length=obj.value.length;
					if (phone_field_length == len) {
						next_field.focus();
						}
					}
				}
			}
		
		function isBlank(val){
			if(val==null){return true;}
			for(var i=0;i<val.length;i++) {
				if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
				}
			return true;
		}
		
		function isSpaceChar(val) {
			if(val.substring(0,1) == ' '){
				return true;
			} else {
				return false;
			}
		}

		function confirmControl(value){
			result = window.confirm(value);
			return result;
		}
		
		function ctrlChar(x,y){
		error = 0;
		if(x.length != 0){
		for(i=0;i<=x.length;i++){
			priChr = x.substring(i,i+1);
			priChr2 = x.substring(i,i+2);
			//if(priChr == "|" || priChr == "&" || priChr == ";" || priChr == "$" || priChr == "%" || priChr == "'" || priChr == "<>" || priChr == "()" || priChr == "+" || priChr == "," || priChr == ")" || priChr == "(" || priChr == "<" || priChr == ">" || priChr == "\\" || priChr == "\"" || priChr2 == "CR" || priChr2 == "LF" || priChr2 == "\\'" || priChr2 == "\\\""){
			if(priChr == "|" || priChr == "&" || priChr == ";" || priChr == "$" || priChr == "%" || priChr == "'" || priChr == "<>" || priChr == "()" || priChr == "+" || priChr == "," || priChr == ")" || priChr == "(" || priChr == "<" || priChr == ">" || priChr == "\\" || priChr == "\"" || priChr2 == "\\'" || priChr2 == "\\\""){
				error = 1;
			}
			if(y==0 && priChr == "@"){ 
				error = 1;
			}
		}
		}
			if(error == 1)return true;
		}
		
		function isDigit(num) {
			if (num.length>1){return false;}
			var string="1234567890.";
			if (string.indexOf(num)!=-1){return false;}
			return true;
		}

		function isInteger(val){
			var havePoint = 0;
			if(val.length != 0){
			for(var i=0;i<val.length;i++){
				if(val.charAt(i) == '.'){ havePoint++;}
				if(!isDigit(val.charAt(i)) || havePoint == 2){return false;}
				}
				return true;
			} else {
				return true;
			}
			
		}

		function isStringDigit(num) {
			if (num.length>1){return false;}
			var string="1234567890.";
			if (string.indexOf(num)==-1){return false;}
			return true;
		}

		function isString(val){
			var havePoint = 0;
			if(val.length != 0){
			for(var i=0;i<val.length;i++){
				if(val.charAt(i) == '.'){ havePoint++;}
				if(!isStringDigit(val.charAt(i)) || havePoint == 2){return false;}
				}
			return true;
			} else {
				return true;
			}
			
		}

		function isIntegerWithPoint(val){
			//if (isBlank(val)){return false;}
			for(var i=0;i<val.length;i++){
				if(!isDigit(val.charAt(i))){return false;}
				}
			return true;
		}
		
		function textCounter(field, countfield, maxlimit) {
			if (field.value.length > maxlimit) // if too long...trim it!
				field.value = field.value.substring(0, maxlimit);
				// otherwise, update 'characters left' counter
			else 
				countfield.value = maxlimit - field.value.length;
		}
