

// *****************************************************
// HIDE||SHOW DETAILS [div]
// *****************************************************
	function ToggleSubDisplay(id) 
	{
		// SHOW ELEMENTS	
			var elemA = document.getElementById(id);
			if (elemA) {
				// alert(elemA.style.display + " " + elemA.style.visibility);
				if(elemA.style.visibility == 'hidden') {
					elemA.style.display = 'block';
					elemA.style.visibility = 'visible';
				} else {
					elemA.style.display = 'none';
					elemA.style.visibility = 'hidden';
				}
				// alert(elemA.style.display + " " + elemA.style.visibility);
			}			
	}

	function setSubDisplay(id, blnShow) 
	{
		// SHOW ELEMENTS	
			var elemA = document.getElementById(id);
			if (elemA) {
				// alert(elemA.style.display + " " + elemA.style.visibility);
				if(blnShow == 1) {
					elemA.style.display = 'block';
					elemA.style.visibility = 'visible';
				} else {
					elemA.style.display = 'none';
					elemA.style.visibility = 'hidden';
				}
				// alert(elemA.style.display + " " + elemA.style.visibility);
			}			
	}

	function myTest(){
		alert("hello world");
	}
	
	function fncDynamicImage(objTarget, strImage) {
		objTarget.src = strImage;
	}
	
	
	
function doConditions(strURL,strPrefix,strTitle)
{
	var text;
	var str;
	str = "";

	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - 800) / 2;
		var yc = (ah - 600) / 2;

		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
	}

	// var objPrintWindow = window.open(strURL, 'PhotoWindow', "width=300,height=160,center,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0" + str);
	var objPrintWindow = window.open(strURL, 'PhotoWindow', "width=440,height=260,center,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0" + str);
		
}
	