// JavaScript Document
function ajaxcall(aId, aUrl, aStr,aEle,stfunc,stparams,enfunc,enparams){window["ele"+aEle] = aEle;ele = window["ele"+aEle];window["url"+aId] = aUrl+aStr;url = window["url"+aId];window['ajaxRequest'+aId] = function (aId2, aUrl){if(stfunc){eval(stfunc)(stparams);}window['xmlHttp'+aId] = null;window['xmlHttp'+aId]=window['GetXmlHttpObject'+aId]();if (window['xmlHttp'+aId]==null){alert ("Browser does not support HTTP Request");}window['xmlHttp'+aId].open("GET",url,true);window['xmlHttp'+aId].onreadystatechange=window['xmlHttpResp'+aId];window['xmlHttp'+aId].send(null);};window['xmlHttpResp'+aId] = function (){if (window['xmlHttp'+aId].readyState==4 || window['xmlHttp'+aId].readyState=="complete"){window['sethtml'+aId] = function (div,content){var search = content;var script;while( script = search.match(/(<script[^>]+javascript[^>]+>\s*(<!--)?)/i)){search = search.substr(search.indexOf(RegExp.$1) + RegExp.$1.length);if (!(endscript = search.match(/((-->)?\s*<\/script>)/))) break;block = search.substr(0, search.indexOf(RegExp.$1));search = search.substring(block.length + RegExp.$1.length);	var oScript = document.createElement('script');oScript.text = block;content = content.replace(/block/, "");}if(ele){document.getElementById(ele).innerHTML = content;}if(enfunc){eval(enfunc)(enparams);}};window['details'+aId] = function (result){window['sethtml'+aId]('contentJan', result);};window['details'+aId](window['xmlHttp'+aId].responseText);}};window['GetXmlHttpObject'+aId] = function (){window['xmlHttp'+aId]=null;try { window['xmlHttp'+aId]=new XMLHttpRequest(); }catch (e) {  try  {  window['xmlHttp'+aId]=new ActiveXObject("Msxml2.XMLHTTP");  } catch (e)  {  window['xmlHttp'+aId]=new ActiveXObject("Microsoft.XMLHTTP");  } }return window['xmlHttp'+aId];};window['ajaxRequest'+aId]();}
function el(ele){
		return document.getElementById('ele');
}
function verify(){
	document.documentElement.style['cursor'] = 'wait !important';
	ajaxcall('sec','verify.php','?sec='+document.getElementById('security_code').value,'hidden',null,null,'end',null);
}
function end(){
	if(document.getElementById('hidden').innerHTML != 'correct'){
		alert('Incorrect SPAM Prevention Code. Please try again.');
		document.getElementById('secimg').src = '';
		var d = new Date();
		document.getElementById('secimg').src = 'images/sec.php?width=73&height=30&character=5&time='+d.getTime();
		return false;
	} else {
		document.getElementById('rateweb').submit();
	}
	document.documentElement.style['cursor'] = 'default';
}