function ajaxFunction(imgID){var xmlHttp;
var imgID;
var imgURL;
var rt;
var fetchedURL;
try  {  // Firefox, Opera 8.0+, Safari  xmlHttp=new XMLHttpRequest();  }catch (e)  {  // Internet Explorer  try    {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }  catch (e)    {    try      {      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      }    catch (e)      {      alert("Your browser does not support AJAX!");      return false;      }    }  }
  
  xmlHttp.onreadystatechange=function()    {
    
    fetchedURL=imgURL;	
    	    if(xmlHttp.readyState<4)
    {
       	document.getElementById("loadingLevel").innerHTML='<img src="assets/i/loading.gif" id="loadingLevelImg" />';
       	// document.getElementById("loadingLevelImg").src='assets/i/loading.gif';
       	
    	
    }
    
    if(xmlHttp.readyState==4)      {      // document.getElementById("debugger").innerHTML=imgURL;  
      
      document.getElementById("previewImage").className='previewImage';   
      document.getElementById("previewImage").src=xmlHttp.responseText;
      document.getElementById("loadingLevel").innerHTML='';      }    }
  
  	imgURL = "preImageLoader.php?cardID="+imgID;
  	xmlHttp.open("GET",imgURL,true);	xmlHttp.send(null);
	//document.write(imgURL);
	//document.write(rt);
  }
  

function openCardWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}