function ProductPopUpWindow (url ) {
	var hWind='ProductDetails'
	var nWidth=400;
	var nHeight=400;
	var nScroll='auto';
	var nResize=true;
	var cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
	var popupwin = window.open(url, hWind, cToolBar);
}

function PopUpWindow (url ) {
	var hWind='ProductDetails'
	var nWidth=450
	var nHeight=580
	var nScroll=true
	var nResize=true
	var cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
	var popupwin = window.open(url, hWind, cToolBar);
	if (popupwin==null || typeof(popupwin)=="undefined") 
	{
		alert("It seems you have a popup blocker enabled which is preventing this site from opening large image. Please disable your popup blocking sofware for this site to view large picture.");
	} 
	if( popupwin != null ) popupwin.focus();

}

function PopUpWindowSmall (url,popName ) {
	var hWind=popName
	var nWidth=450
	var nHeight=500
	var nScroll=true
	var nResize=true
	var cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
	var popupwin = window.open(url, hWind, cToolBar);
	if (popupwin==null || typeof(popupwin)=="undefined") 
	{
		alert("It seems you have a popup blocker enabled which is preventing this site from opening large image. Please disable your popup blocking sofware for this site to view large picture.");
	} 
	if( popupwin != null ) popupwin.focus();

}

function IsEmpty(data) {
	for (var row=0; row < data.length; row++) {
		if (data.substring(row, row+1) != " ")
			return (false);
		}
	return (true);
}

function doValidation(ObjForm)
{
	if (ObjForm.Product_ID)
	if (ObjForm.Product_ID.tagName.toLowerCase()=='select')
	{
		 if (IsEmpty(ObjForm.Product_ID[ObjForm.Product_ID.selectedIndex].value))
		{
			alert('Please select a size.');
			ObjForm.Product_ID.focus();
			return false;
		}
	}
return true;	
}


