// JavaScript Document

<!--
function HideContent(d) {
		if(d.length < 1) { return; }
		document.getElementById(d).style.display = "none";
	}
	function ShowContent(d) {
		if(d.length < 1) { return; }
		document.getElementById(d).style.display = "block";
	}
	function ReverseContentDisplay(d) {
		if(d.length < 1) { return; }
		if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
		else { document.getElementById(d).style.display = "none"; }
	}


//-->
function ShowPr(Id) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 400;
	winHeight = 400;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;
	
	
	window.open("ProductPopUp.asp?Id="+Id, "mainCat",  "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar='no',resizable='yes'");
	return;
}


function GetImg(u){
	var ajaxRequest;
	try{
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				alert("Your browser broke!");
				return false;
			}
		}
	}
	document.getElementById('ItemImg').innerHTML = "<font class=Loading>wait..</font>&nbsp;<img src=images/8.gif>";
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById('ItemImg');
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	ajaxRequest.open("GET",  "OrderMainImage.asp?Id="+u, true);
	ajaxRequest.send(null); 
}


function GetPrSubType(u){
	var ajaxRequest;
	try{
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				alert("Your browser broke!");
				return false;
			}
		}
	}
	document.getElementById('PrSubType').innerHTML = "<font class=Loading>wait..</font>&nbsp;<img src=images/8.gif>";
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById('PrSubType');
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	ajaxRequest.open("GET",  "OrderPrSubType.asp?Id="+u, true);
	ajaxRequest.send(null); 
}



