
function showProjDet(itId , lan){
	
	 try{
	 						
							if(dialog == "")createWait({draggable: true});
							else {
							 	 dialog = "";
								 createWait({draggable: true});
								}
	 					    obj2 = new myAjax();
							obj2.xmlHttp.onreadystatechange=function()
							  {
								 //	if (obj.xmlHttp.readyState==1){alert("asd");}
 //alert(obj2.xmlHttp.readyState);
							
								if (obj2.xmlHttp.readyState == 4){dialog.setContent(obj2.xmlHttp.responseText);}
									   
										
									  
								}
							url="projects/projAjax.php?iti="+itId+"&lan="+lan+"&time="+obj2.time.getTime();
							obj2.xmlHttp.open("GET",url,true);
							obj2.xmlHttp.send(null);
							
	 }catch(e){alert("Error: Initailizing Ajax")}
	
	
	}
	

function  nextProjImg( current , itId ){
	
	     					 
							obj = new AJAX();
							obj.xmlHttp.onreadystatechange=function()
							  {
									 
									if (obj.xmlHttp.readyState==1){
											 document.getElementById("npCell").innerHTML = 'Please wait<marquee direction="right" behavior="scroll" loop="-1" width="20" scrollamount="2">.....</marquee>';
										}

									if (obj.xmlHttp.readyState==4){
										  document.getElementById("npCell").innerHTML = obj.xmlHttp.responseText;
										}
									   
										
									  
								}
							url="products/npAjax.php?curI="+current+"&iti="+itId+"&time="+obj.time.getTime();
							obj.xmlHttp.open("GET",url,true);
							obj.xmlHttp.send(null);	 
		 
		 }
		 
