﻿	function showDiv(strID) {
		document.getElementById(strID).style.visibility="visible";
		document.getElementById(strID).style.display="block";
		
	}

	function hideDiv(strID) {
		document.getElementById(strID).style.visibility="hidden";
		document.getElementById(strID).style.display="none";
	}
	
	function showMsg(sTitle,sMessage,nOK) {
	    	var isIE;
	        var isNS;
	        if (navigator.appName.indexOf("Explorer")>-1)
		        isIE=true;
	        if (navigator.appName.indexOf("Netscape")>-1)
		        isNS=true;
	        var winW = 630, winH = 460;
	        if (parseInt(navigator.appVersion)>3) {
	         if (navigator.appName=="Netscape") {
	          winW = window.innerWidth;
	          winH = window.innerHeight;
	         }
	         if (navigator.appName.indexOf("Microsoft")!=-1) {
	          winW = document.body.offsetWidth;
	          winH = document.body.offsetHeight;
	         }
	        }
        	
        	// Exceptions
        	
	    	scroll(0,0);
	        document.getElementById('modalmsg').style.left=(winW-480)/2 + "px";
	        document.getElementById('modalmsg').style.top="240px";
	        showDiv('modalmsgbackground');
	        showDiv('modalmsg');
	        document.getElementById('msgcontent').innerHTML='<h2 style="margin-bottom:5px;">'+sTitle+'</h2>'+sMessage+'';
	        if (nOK>0) {
	            document.getElementById('msgcontent').innerHTML=document.getElementById('msgcontent').innerHTML+'<br /><div id="msgok"><a href="Javascript:hideMsg();" class="bigbutton"><span><span>&nbsp; OK &nbsp;</span></span></a></div>';
	        }
	}
	
	function hideMsg() {
	        hideDiv('modalmsgbackground');
	        hideDiv('modalmsg');
	}
	
	function sendHeart(){
	    
	}
	
	
	function activateField(fieldID) {
	    if (isNaN(document.getElementById(fieldID).value)) {
	        document.getElementById(fieldID).value='';
	    }
	    document.getElementById(fieldID).className='';
	}
	
	

	function HTTPpost(url){
		var xmlhttp=false;
		var returnValue=new String();
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xmlhttp = false;
			}
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		if (!xmlhttp && window.createRequest) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) {
				xmlhttp=false;
			}
		}
		xmlhttp.open("GET", url,false);
		xmlhttp.send(null);
		returnValue=xmlhttp.responseText;
		return returnValue;
	}


	
	
	
	
	
