// JavaScript Document

	function Open_PrintPage(PageUrl,PageTitle){
			var PrintWindow,PrintWidth=Get_Resolution(),PrintHeight;

			PrintHeight=PrintWidth/4*3-40;
			if(PrintHeight>920){PrintHeight=920;}

			PrintWindow = window.open(PageUrl,PageTitle,"location=0,status=0,scrollbars=1,width=701,height=" + PrintHeight);
			PrintWindow.moveto(1,1);
	}

	function Get_Resolution(){
		return screen.width;
	}

	function Open_Popup(PageURL, width, height, left, top){
	    var defaultWidth = 640;
	    var defaultHeight = 494;
	    var defaultLeft=100;
	    var defaultTop=100;

	    width = width==null ? defaultWidth : width;
	    height = height==null ? defaultHeight : height;
	    left = left==null ? defaultLeft : left;
	    top = top==null ? defaultTop : top;

		window.open(PageURL, "_blank",'width='+width+',height='+height+',left='+left+',top='+top+',resizable=no,location=no,directories=no,scrollbars=no,menubar=no,status=no,toolbar=no,titlebar=no,hotkeys=no');
	}

	function isArray(){
		if (typeof arguments[0] == 'object'){  
			var criterion = arguments[0].constructor.toString().match(/array/i);
			return (criterion != null);  
		}
  		return false;
	}

	function get_Object(objectId) {
	    // cross-browser function to get an object's style object given its id
	    if(document.getElementById && document.getElementById(objectId)) {
			// W3C DOM
			return document.getElementById(objectId);
	    } else if (document.all && document.all(objectId)) {
			// MSIE 4 DOM
			return document.all(objectId);
	    } else if (document.layers && document.layers[objectId]) {
			// NN 4 DOM.. note: this won't find nested layers
			return document.layers[objectId];
	    } else {
			return false;
	    }
	}

	function set_Visibility(objectId, objVisibility){
		objectId = get_Object(objectId)
		if(objectId){
			objectId.style.visibility = objVisibility;
			get_Object('body_container').style.visibility = 'hidden'
			return true;
		}else{
			return false;
		}
	}

	function set_Display(objectId, objDisplay){
		objectId = get_Object(objectId)
		if(objectId){
			objectId.style.display = objDisplay;
			return true;
		}else{
			return false;
		}
	}