

function check_email(email) {
		var getstr ='email_id=' + encodeURI(email) +'&sid='+Math.random();
		//alert(getstr)		
		document.getElementById("email_msg1").innerHTML='<font color = "red"></font>';
		ajaxpack.postAjaxRequest("modules/ajax-file-check/check_login_email.php", getstr, display_checkemail, "txt", '');
	}
function display_checkemail() {
  var myajax = ajaxpack.ajaxobj
  var myfiletype = ajaxpack.filetype
  var products_page = ajaxpack.callback_parameter;
  if (myajax.readyState == 4){ //if request of file completed
    if (myfiletype=="txt") {
		//alert(myajax.responseText)
		document.getElementById("email_msg1").innerHTML = myajax.responseText			
	}
  }
}


//Function to putting blank spacses

/********************************************************************************************************/
function putblankspaces(id) {
		var getstr ='sid='+Math.random();
		//alert(id)	;	
		document.getElementById(id).innerHTML='';
		ajaxpack.postAjaxRequest("modules/ajax-file-check/blankspace.php", getstr, display_putblankspaces, "txt", '');
	}
function display_putblankspaces() {
  var myajax = ajaxpack.ajaxobj
  var myfiletype = ajaxpack.filetype
  var products_page = ajaxpack.callback_parameter;
  if (myajax.readyState == 4){ //if request of file completed
    if (myfiletype=="txt") {
		//alert(myajax.responseText)
		document.getElementById(id).innerHTML = myajax.responseText			
	}
  }
}
/***********************************************************************************************************/
