
	function list(n) {
	
	if (n=="bw"){	
	a=a-1;
	
	if(a<1){a=col;}
	
lt=path+"pict0"+[a]+".jpg";

    document['art'].src = lt;
	
	} 
	
	else {
		
	a=a+1;
		if(a>col){a=1;}
	
rt=path+"pict0"+[a]+".jpg";

    document['art'].src = rt;
	
	
	}
	

	
	}



  
function swl(t) {
//a= im[t]+pic[n];
    document['art'].src = t;
	

}


function getFile(pURL) {
   if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc 
      xmlhttp=new XMLHttpRequest();
      xmlhttp.onreadystatechange=postFileReady;
      xmlhttp.open("GET", pURL, true);
      xmlhttp.send(null);
   } else if (window.ActiveXObject) { //IE 
      xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
      if (xmlhttp) {
         xmlhttp.onreadystatechange=postFileReady;
         xmlhttp.open('GET', pURL, true);
         xmlhttp.send();
      }
   }
}



// function to handle asynchronous call
function postFileReady() {
   if (xmlhttp.readyState==4) { 
      if (xmlhttp.status==200) { 
         document.getElementById('descript').innerHTML=xmlhttp.responseText;
      }
   }
}



