﻿function checkEnter(e){ 
	var characterCode;
	if(e && e.which) 
	{ 
		e = e;
		characterCode = e.which; 
	} else
	{
		e = event;
		characterCode = e.keyCode; 
	}
	if(characterCode == 13){
		linker();
		return false;
	}
}

function linker()
{
	location.href = '/arama/arama.aspx?keyword=' + document.getElementById("aramaText").value;
}

/* cleartxt */
function clearTXT(mytxtObj,statu){	
	if(!mytxtObj._defaultValue) {
			mytxtObj._defaultValue = mytxtObj.value;
	}	
	if (statu==1){
		if (mytxtObj.value==''){
			mytxtObj.value=mytxtObj._defaultValue;
		}
	}
	else{
		if (mytxtObj.value == mytxtObj._defaultValue){
			mytxtObj.value = '';
		}
	}
}
