function _gel(a){return document.getElementById(a)}
function Load(){var a=null;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=null}}if(!a&&typeof XMLHttpRequest!="undefined"){a=new XMLHttpRequest()}return a}
function get_random(){var ranNum= Math.round(Math.random()*8129);return ranNum;}
function trim(s){return s.replace(/^\s+/,'').replace(/\s+$/,'');}
function ColorInput(Obj,CellColor){Obj.style.backgroundColor=CellColor}
function isEmail(string){if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)return true;else return false;}

function sfx(f){
	var t = trim(f.elements['maile'].value)
	if (t.length < 10) {
		alert('Please provide email address');
		ColorInput(f.elements['maile'],'#FF9E2B')
	    document.sf.maile.focus();
		return false
	} ColorInput(f.elements['maile'],'#ffffff')
	
	if(!isEmail(t)){
		alert('Please provide email address');
		ColorInput(f.elements['maile'],'#FF9E2B')
	    document.sf.maile.focus();
		return false	
	}ColorInput(f.elements['maile'],'#ffffff')
	
	f.elements['email'].value = t
	f.elements['maile'].value = ''
	return true
}