

function set_grids(id){
get_grid_info(id)
//alert( grid_index_a[1]);
get_list(id);

	
}
function mouse_click(id)
{
	//alert("mouse_click");
	document.getElementById(''+id).style.cursor="pointer";
}


function reset_table()
{
window.location = "http://www.eternitydiamonds.com/engagement_rings_show_all.php";
}

function update_table_price(minimun,maximun)
{
//alert(minimun + maximun);
page = "";
price_min = minimun;
price_max = maximun;
get_engagement_rings(page,set_type,price_min,price_max);

}

function update_table_page(page_id)
{
page = page_id
get_engagement_rings(page,set_type,price_min,price_max);

}

function update_table_setting(setid)
{
page = "";
set_type = setid;
get_engagement_rings(page,set_type,price_min,price_max);

}



function myherf(id){
	window.location = id;
}

function myherf_page(id){
	window.location = id;
}

function mouseOver(id,image,mylink)
{
//alert(image)
//document.form1.image4.src ="products/Engagment/thum.9346UP.jpg";
 // document.getElementById('mymy'+id).style.visibility="hidden";
 //alert( document.getElementById('mymy'+id).style.backgroundImage);
//	document.getElementById('mymy'+id).innerHTML = '<a style="text-decoration:none; color:#333333;"  href="rings/'+mylink+'  " > </a>';
	

	if(FileExists("/products/Engagement/thum." + image)){

	
	
	myimage = "url(/products/Engagement/thum." + image + ")";
	//alert(myimage);
	document.getElementById('mymy'+id).style.backgroundImage = myimage;
	item_id = id ;
	}

//alert(item_id);
}

function FileExists(strURL)
{
	strURL1 = "http://www.eternitydiamonds.com/" + strURL;
	oHttp = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();    
	oHttp.open("HEAD", strURL1, false);
	oHttp.send();
	return (oHttp.status==404) ? false : true;
}

function mouseOut(id,price,type,image,mylink)
{
	myimage = "url(/products/Engagement/thum." + image + ")";

	document.getElementById('mymy'+id).style.backgroundImage = myimage;
//	document.getElementById('mymy'+id).innerHTML ='<a style="text-decoration:none; font-size:12px; color:#7c7c7c; font-family:Tahoma, Geneva, sans-serif; "  href="rings/'+mylink+'"> Price :<span style="color:#4a4a4a;" > $'+price +'</span></a>';

}