	var xmlHttp;
	var requestType;
	var div;
	var wb = 'http://www.mumincelik.com/';
	function createXMLHttpRequest() {
		if(window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if(window.XMLHttpRequest) {
			xmlHttp = new XMLHttpRequest();
		}
	
	}
	
	function startRequest( url, qry, type , divid) {
		div = divid;
		createXMLHttpRequest();
		xmlHttp.onreadystatechange = handleStateChange;
		xmlHttp.open(type, url, true);
		if(type == 'POST') {
			xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
			xmlHttp.send(qry);
		} else {
			xmlHttp.send(null);
		}
	}
	
	function handleStateChange() {
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				document.getElementById(div).innerHTML = xmlHttp.responseText;
			}
		} else {
			document.getElementById(div).innerHTML = '<img src="' + wb + 'img/dot.gif"><br><br>';
		}
	}
	
	function showEMail ( username , domainname ) {
		document.write( username + '@' + domainname )
	}
	
	
	var typeEMail = /^[\w-\.]+\@[\w\.-]+\.[a-z]{2,4}$/;

	function checkEMail( msg)
	{
		var email = document.getElementsByID ('email');
		if(!typeEMail.test( email.value ))
			window.alert(msg)
		
		return true
	}

