//AHAJAX Functions - Copyright 2008 TNAFlix.com All rights reserved
//Proceses GET Request with server
var xmlhttpRev
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	  try {
	  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	   xmlhttp=false
	  }
	 }
	@else
	 xmlhttp=false
	@end @*/
	if (!xmlhttpRev && typeof XMLHttpRequest!='undefined') {
	 try {
	  xmlhttpRev = new XMLHttpRequest();
	 } catch (e) {
	  xmlhttpRev=false
	 }
	}
	function myXMLHttpRequest() {
	  var xmlhttplocal;
	  try {
	    xmlhttplocal= new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttplocal= new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	    xmlhttplocal=false;
	  }
	 }

	if (!xmlhttplocal && typeof XMLHttpRequest!='undefined') {
	 try {
	  var xmlhttplocal = new XMLHttpRequest();
	 } catch (e) {
	  var xmlhttplocal=false;
	  alert('couldn\'t create xmlhttp object');
	 }
	}
	return(xmlhttplocal);
}
	
	
function showReviewers() {
    if(xmlhttpRev.readyState == 4) {        
    	eval(xmlhttpRev.responseText);
    }
}

function updateReviewers(vid) {	
	xmlhttpRev.open('get', 'ajax/update_reviewers.php?vid='+vid);
	xmlhttpRev.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlhttpRev.onreadystatechange = showReviewers;
	xmlhttpRev.send(null);
}