//Javascript Document 

function openURL(url,height,width){  

javascript:window.open(url,'','height='+height+',width='+width+',left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')

}  

/* Ajax Validation of promotion code */
function showrecentposts(feedurl,norecentpost,newsupdatesCnt){
  request();
  xmlhttp.onreadystatechange=function(){
    if (xmlhttp.readyState==4 && xmlhttp.status==200){
      document.getElementById("recentposts").innerHTML=xmlhttp.responseText;
    }
  }
  xmlhttp.open("GET","includes/recentposts.php?norecentpost="+norecentpost+"&feedurl="+feedurl+"&newsupdatesCnt="+newsupdatesCnt,true);
  xmlhttp.send();
}

function request(){
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
}
