	function helpRate(form,link){
		var rating=form.rate.value;
		window.location = "http://www.kurdistanem.com?"+link+"&rate="+rating;
	}
	
	function sleep(milliseconds) {
	  var start = new Date().getTime();
	  for (var i = 0; i < 1e7; i++) {
	    if ((new Date().getTime() - start) > milliseconds){
	      break;
	    }
	  }
	}
	
	function passfield(){
		var field="<input type='password' id='passwordF' name='password' size='18' style='border-style:groove; border-width:1px; font-size: 10pt; font-family:Tahoma; background-color:#EAFFDD'>";
		document.getElementById("s_password").innerHTML=field;
		document.getElementById('passwordF').focus();
		sleep(100);
		document.getElementById('passwordF').focus();
	}
	
	function clearField(form,text){
		if(form.username.value==""){
			form.username.value=text;
		}else if(form.username.value==text){
			form.username.value="";
		}
	}
	
	function statusField(form,text,user_id,user){
	
	var act_text=user+" is ";
	
		if(form.status.value==text){
			form.status.value=act_text;
		}else if(form.status.value==""||form.status.value==act_text){
			form.status.value=text;
		}
		
	}
		
	function fadeOut(id){
			
		tableId=id;
		var k=0;
		
		if(tableId.style.backgroundColor==fakeOb.style.backgroundColor){
		
			for (var count=204;count<256;count++){
				setTimeout('setOpacity('+count+')',.7*k);
				k++;
			}
		}
			
		return false;
	}
	
	function setOpacity(value){
		
		tableId.style.backgroundColor='rgb(255,'+value+','+value+')';
		//tableId.style.opacity = value/10;
		//tableId.style.filter = 'alpha(opacity=' + value*10 + ')';
	}
		
	
	function getdata(dest) { 
		try { 
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); 
		} catch (e) { 
		} 
		xmlhttp.onreadystatechange = triggered; 
		xmlhttp.open("GET", dest); 
		xmlhttp.send(null); 
	} 
	
	function triggered() { 
		if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) { 
		document.getElementById("msgUpdate").innerHTML = xmlhttp.responseText; 
		
		} 
	} 
	
	function genRand(lower_limit,higher_limit){
	
		//changes by 1000
		var by_digit=1000;
		lower_limit=lower_limit/by_digit;
		higher_limit=higher_limit/by_digit;
		
		var lh_diff=higher_limit-lower_limit;
		var randomNum=Math.floor(lower_limit+Math.random()*lh_diff);
		
		return randomNum*by_digit;
		
	}