function NewWindow(mypage,myname,w,h,scroll){ 

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
window.open(mypage,myname,settings) 
} 

// ------------------------------------------------------------------
//New Design Corner
// ------------------------------------------------------------------
jQuery(document).ready(function(){

					paint_borders();



		});

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function paint_borders()
		{
				jQuery("#header_menu").css("z-index","9999999");
				jQuery(".grayheader,.blueheader,.blueheaderarrow").corner("top 8px");

				jQuery(".blueheaderarrow").each(function(){jQuery(this).html("<span class='titlearrow'>"+jQuery(this).html()+"</span>")});

				if(!jQuery.browser['opera'])
				{
				jQuery(".blueheaderarrow").prepend("<img class='redarrow' src='/images/redarrow_bluematte.gif' />&nbsp");
				}

				jQuery("table[class=tableborder]").each(function(){

				jQuery(this).find("tr:first td[class=tableheader]").css({padding: "0px 0px 5px 0px"}).each(function(){

				if(jQuery(this).prev().attr("class") !="tableheader" && jQuery(this).next().attr("class") !="tableheader")//colspan
				{
					addRedArrow(jQuery(this));
				  	jQuery(this).corner("top 5px").css("z-index","-90");

				}
				else if(jQuery(this).prev().attr("class") !="tableheader")
				{
					addRedArrow(jQuery(this));
					jQuery(this).corner("tl 5px");
				}

				else if(jQuery(this).next().attr("class") !="tableheader")
				{
					addRedArrow(jQuery(this));
					jQuery(this).corner("tr 5px");
				}

				});

					jQuery(this).find("tr:gt(0) td[class=tableheader]").prepend("<img class='redarrowsub' src='/images/redarrow_bluematte.gif' />&nbsp");

					});

					adjust_menu();


					if(!(jQuery.browser["msie"] && jQuery.browser["version"]<7))//not working in IE 6 body round
					{
 						jQuery(".graybody").corner("bottom 8px");
						jQuery("#left_sidebar_menu").corner("bottom 8px");

					}

		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function addRedArrow(jQueryobject)
		{

			if(jQueryobject && jQueryobject.html().search(/redarrow/)==-1)
			{
				jQueryobject.prepend("<img class='redarrow' src='/images/redarrow_bluematte.gif' />&nbsp");
			}
		}


		/**
		 *
		 * @access public
		 * @return void
		 **/
		function adjust_menu()
		{

			var docHeader = document.getElementById("maincontent");
			var docMenu = document.getElementById("left_sidebar_menu");

			if(!docHeader || !docMenu)
			{
				return;
			}

     		contentHeight = docHeader.offsetHeight;

     		menuHeight = docMenu.offsetHeight;

     		(menuHeight<contentHeight) ? jQuery("#left_sidebar_menu").css({"height":contentHeight}) : "";
		}


