//	ajax
//	update calendar availability
//	version 2.1

//	define your default vars here update_cal_list.ajax.php
var update_url		=	'bigimage.php';	//	path to ajax file
var icon_loading	=	"icon_loading.gif";			//	loading animation image
var cal_on			=	"cal_sel_";					//	start of cal number file name (om/booked)
var cal_num_img_type=	".gif";						//	file type extension (include "." before extension)
var num_w			=	"30px";						//	width of numbers
var num_h			=	"30px";						//	height of numbers
var image_dir		=	"./images/";				//	path to calendar images
var	image_loading=	"<img src='"+image_dir+icon_loading+"' border='0' />";
//	no need to modify below here unless you know what you are doing ;)

var state_elm	=new Object();
var elm_num		=	new Object();
var special_state= new Object();


function ajax_bigimage(customerID,inventoryno,imageName){	
	//	 start class
	
	ajax 		=	new sack();
	image_elm=document.getElementById("prodimages");
	//alert(image_loading);
      image_elm.innerHTML = image_loading;
	//	 call ajax file to update state
	var the_url_prod=update_url+"?customerID="+customerID+"&inventory_no="+inventoryno+"&imageName="+imageName;
	ajax.requestFile = the_url_prod;
	ajax.onCompletion =reset_state_image;
	ajax.runAJAX();
	
}


function reset_state_image(){
	
	
			image_elm.innerHTML =ajax.response;
	
}




