function AddToFavorites()            
    {            
	title = "Sas Güvenlik";            
	url = "http://www.sasguvenlik.com.tr/";            
	if (window.sidebar) 
	    {             
		window.sidebar.addPanel(title, url,"");
	    } 
	else if( window.external ) 
	    {   
		window.external.AddFavorite( url, title); 
	    }            
	else if(window.opera && window.print) 
	    {
		return true; 
	    }            
}
function iso88599Escape(strText)
    {
	//strText=escape(strText);

	strText=strText.replace(/ı/g,"%C4%B1");
	strText=strText.replace(/Ü/g,"%C3%9C");
	strText=strText.replace(/ü/g,"%C3%BC");
	strText=strText.replace(/ğ/g,"%C4%9F");
	strText=strText.replace(/Ğ/g,"%C49E%");
	strText=strText.replace(/ü/g,"%C3%BC");
	strText=strText.replace(/Ü/g,"%C3%9C");
	strText=strText.replace(/İ/g,"%C4%B0");
	strText=strText.replace(/ş/g,"%C5%9F");
	strText=strText.replace(/Ş/g,"%C5%9E");
	strText=strText.replace(/ç/g,"%C3%A7");
	strText=strText.replace(/Ç/g,"%C3%87");
	strText=strText.replace(/ö/g,"%C3%B6");
	strText=strText.replace(/Ö/g,"%C3%96");
	return strText;
    } 
function createObj() 
    {
	var obj;
	var navName = navigator.appName;
	if(navName == "Microsoft Internet Explorer")
	    {
		obj = new ActiveXObject("Microsoft.XMLHTTP");
	    }
	  else
	    {
		obj = new XMLHttpRequest();
	    }
		return obj;
    }
var http = createObj();
function checkField(checkedField,checkedData) 
    {
	var gelenData = checkedData;
	urlFile = 'checkField.asp?data='+checkedData+'&cField='+checkedField.id;
	//alert(urlFile)
	http.open('get', urlFile, true);
        http.setRequestHeader('If-Modified-Since', 'Sat, 21 May 2009 00:00:00 GMT');
	http.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
	http.setRequestHeader('Connection', 'close');
	//alert(urlFile)
	http.onreadystatechange = doCheckField
	http.send(null);
    }
function doCheckField() 
    {
    	if(http.readyState == 1)
	   {

    	   }
    	if(http.readyState == 4)
	   {
		respondedMessage = http.responseText;
		//alert(respondedMessage)
		if(respondedMessage == 'yok') {
		   document.getElementById("fUserName").innerHTML = '<FONT STYLE="COLOR: GREEN; FONT-SIZE: 11pt">Kullanıcı adı müsit';
		}
		if(respondedMessage == 'userName kucuk') {
		   document.getElementById("fUserName").innerHTML = '<FONT STYLE="COLOR: RED; FONT-SIZE: 11pt">Kullanıcı adı en az 5 karatker olmalıdır';
		}
		if(respondedMessage == 'hatali email') {
		   document.getElementById("fEmail").innerHTML = '<FONT STYLE="COLOR: RED; FONT-SIZE: 11pt">&nbsp;&nbsp;&nbsp;Geçerli bir mail adresi giriniz';
		}
		if(respondedMessage == 'dogru email') {
		   document.getElementById("fEmail").innerHTML = '<FONT STYLE="COLOR: RED; FONT-SIZE: 11pt">&nbsp;';
		}
		if(respondedMessage == 'var') {
		   document.getElementById("fUserName").innerHTML = '<FONT STYLE="COLOR: RED; FONT-SIZE: 11pt">Bu kullanıcı adı kullanımda';
		}
    	   }
		   //setInterval("clearNoticeTD(fieldName)",5000)
    }
function checkEmail(myForm) 
    {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm)){
	return (false)
	    }
	return (true)
    }
function chkField(obj)
    {
	document.getElementById(obj.id).style.backgroundImage = 'none'
    }
function chkFieldOut(obj,fileName)
    {
	if(!obj.value) document.getElementById(obj.id).style.backgroundImage = 'url(' + fileName + ')'
    }
function topMenuMouseOver(obj)
    {
	document.getElementById(obj+'1').style.background = 'black';
	document.getElementById(obj+'2').style.background = 'black';
	document.getElementById(obj+'2').style.color = 'white';
    }
function topMenuMouseOut(obj)
    {
	document.getElementById(obj+'1').style.background = '#A5A652';
	document.getElementById(obj+'2').style.background = '#A5A652';
	document.getElementById(obj+'2').style.color = 'black';
    }
function changePictureSrc(obj,srcName)
    {
	document.getElementById(obj.id).src = '/images/'+srcName+'over.gif'
    }
function repairPictureSrc(obj,srcName)
    {
	document.getElementById(obj.id).src = '/images/'+srcName+'.gif'
    }
function changeBgOn(obj,colorCode)
    {
	obj.style.backgroundColor = colorCode;
    }
function changeBgOf(obj,colorCode,fieldID)
    {
	obj.style.backgroundColor = colorCode;
	document.getElementById(fieldID).innerHTML = '&nbsp;'
    }