function $(id) {
		return document.getElementById(id);
}
// JavaScript Document
function isValidEmail(address) {
   if (address != '' && address.search) {
	  if (address.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true;
	  else return false;
   }
   
   // allow empty strings to return true - screen these with either a 'required' test or a 'length' test
   else return true;
}
//////////////////////////////////////////////////
function isNumeric(string, ignoreWhiteSpace) {
   if (string.search) {
      if ((ignoreWhiteSpace && string.search(/[^\d\s]/) != -1) || (!ignoreWhiteSpace && string.search(/\D/) != -1)) 
	  return false;
   }
   return true;
}
function clickclear(thisfield, defaulttext) {
	if ($(thisfield).value == defaulttext) {
	$(thisfield).value = "";
	}
}
function donTclr(thisfield, defaulttext) {
	if ($(thisfield).value == "" || $(thisfield).value == " ") {
	$(thisfield).value = defaulttext;
	}
}
function submitenter(email)
{
		if (!isValidEmail($(email).value) || $(email).value == "")
		{ 
			alert ("Geçersiz E-Posta Adresi");
		} 
		else
		{
			$("action").value="send";
			$("bultenForm").submit();
			return false;
		}
	}
