// JavaScript Document

function validation(){
	if(document.contactform.FirstName.value == ""){
		alert("Please enter First Name");
		document.contactform.FirstName.focus();
		return false;
	}
	if(document.contactform.LastName.value == ""){
		alert("Please enter Last Name");
		document.contactform.LastName.focus();
		return false;
	}
	if(isEmail(document.contactform.Email.value) == false){		
		document.contactform.Email.focus();
		return false;
	}
}


function displayImg(img)
{ 	document.getElementById("eventImg").innerHTML="<img src='admin/aboutimage/thumb/"+img+"' border='0' style='margin-top:40px; height:222px; width:160px; margin-left:21px;' />";
}




	
/////User Favorite Painting List/////
function display_adventure(Text)
	{
		var Text = Text; 		
		document.getElementById('addbig').innerHTML=Text;	
		
	}	



	
function cl_xmlHttpObject () 
	  {  
          var xml_http_object;       
  
          try{ 
              	xml_http_object = new XMLHttpRequest();  
				
          	 }catch(e)
			 {
          		try { 
                  		xml_http_object = new ActiveXObject("Msxml2.XMLHTTP");
						
						
              		}
					catch(e)
					{ 
                  		try {
                      			xml_http_object = new ActiveXObject("Microsoft.XMLHTTP");
  
                  } catch(e) { 
                      //alert("ERROR: Your browser does not support AJAX.");
                      return false; 
                  }

              }
 
          }    

          return xml_http_object;      
 
      }
	
		
/////Dispaly select Artist Image in Large Side////////////
	
	function advecBig(id)
	{   var id=id;
	
	    var xmlhttp1 = new cl_xmlHttpObject();
    	xmlhttp1.open("get","advecBig.php?id="+id,true);
        xmlhttp1.onreadystatechange = function()
    	{
    		
			 if (xmlhttp1.readyState <4) {
 
                     
					  //display_info(xmlhttp1.responseText);
  
                  }
				  else if(xmlhttp1.readyState ==4)
						{
							if(xmlhttp1.status==200)
							{
								display_adventure(xmlhttp1.responseText);
								
								
							}
							else
							{
							display_info("An Error Occured:"+ xmlhttp1.statusText);
							}
						}
    	};
    xmlhttp1.send(null);
	}
