var clickmessage="If the image hasn't loaded, please re-load the page.."

	function disableclick(e) {
	if (document.all) {
	if (event.button==2||event.button==3) {
	if (event.srcElement.tagName=="IMG"){
	alert(clickmessage);
	return false;
	}
	}
	}
	else if (document.layers) {
	if (e.which == 3) {
	alert(clickmessage);
	return false;
	}
	}
	else if (document.getElementById){
	if (e.which==3&&e.target.tagName=="IMG"){
	alert(clickmessage)
	return false
	}
	}
	}

	function associateimages(){
	for(i=0;i<document.images.length;i++)
	document.images[i].onmousedown=disableclick;
	}

	if (document.all)
	document.onmousedown=disableclick
	else if (document.getElementById)
	document.onmouseup=disableclick
	else if (document.layers)
	associateimages()
	
	//----------
	
function enlarge(productId,url)
			{
			var imageWindow = window.open("","","scrollbars=yes,resizable=yes");
			imageWindow.document.writeln("<html><head><title>Raga Creations - Product Id :&nbsp;"+productId+"<\/title>\n");
			imageWindow.document.writeln("<SCRIPT LANGUAGE=\"JavaScript\">");
			imageWindow.document.writeln("<!-- Begin\nfunction fitWindowSize() { var isNav4, isIE4; if (parseInt(navigator.appVersion.charAt(0)) >= 4) {");
			imageWindow.document.writeln("isNav4 = (navigator.appName == \"Netscape\") ? 1 : 0;");
			imageWindow.document.writeln("isIE4 = (navigator.appName.indexOf(\"Microsoft\") != -1) ? 1 : 0;}");
			imageWindow.document.writeln("if (isNav4) {window.innerWidth = document.layers[0].document.images[0].width;");
			imageWindow.document.writeln("window.innerHeight = document.layers[0].document.images[0].height;}");
			imageWindow.document.writeln("if (isIE4) {window.resizeTo(800, 600);");
			imageWindow.document.writeln("width = 800 - (document.body.clientWidth -  document.images[0].width);");
			imageWindow.document.writeln("height = 600 - (document.body.clientHeight -  document.images[0].height);");
			imageWindow.document.writeln("window.resizeTo(width, height);   } } \/\/  End -->");
			imageWindow.document.writeln("<\/script>");
			imageWindow.document.writeln("<body bgcolor=\"#000000\" onLoad=\"fitWindowSize()\">");
			imageWindow.document.writeln("<script language=\"JavaScript\">");
			imageWindow.document.writeln("var message=\"If the image does not load, or has partially loaded, please re-load the page..\";");
			imageWindow.document.writeln("function clickIE4(){if (event.button==2){alert(message);return false;}}");
			imageWindow.document.writeln("function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){alert(message);return false;}}}");
			imageWindow.document.writeln("if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}");
			imageWindow.document.writeln("document.oncontextmenu=new Function(\"alert(message);return false\")<\/script>");
			imageWindow.document.writeln("<div style=\"position:absolute; left:0px; top:0px\">");
			imageWindow.document.writeln("<img src=\""+url+"\" onload=\"fitWindowSize()\">");
			imageWindow.document.writeln("<\/div><\/body><\/html>");

			}