function OpenWindow(url, windowWidth, windowHeight)
{
	var oWindow = window.open(url, "_blank", "scrollbars=yes,resizable=yes,width=" + windowWidth+ ",height=" + windowHeight); 
	centerWindow(oWindow, windowWidth, windowHeight); 
	oWindow.focus();
	
	return false;
}

function OpenWindow(url)
{
	var windowWidth = 900 
	var windowHeight = 600; 

	var oWindow = window.open(url, "_blank", "scrollbars=yes,resizable=yes,width=" + windowWidth+ ",height=" + windowHeight); 
	//centerWindow(oWindow, windowWidth, windowHeight); 
	oWindow.focus();
	
	return false;
}

function OpenURL(url)
{
	var oWindow = window.open(url, "_blank", "scrollbars=yes,resizable=yes,width=400,height=475"); 
	
	return false;
}

function OpenReader(url)
{
	var windowWidth = 800 
	var windowHeight = 600; 

	var oWindow = window.open(url, "_blank", "scrollbars=yes,resizable=yes,width=" + windowWidth+ ",height=" + windowHeight); 
	centerWindow(oWindow, windowWidth, windowHeight); 
	oWindow.focus();
	
	return false;
}

function OpenWindowMap(url, windowWidth, windowHeight)
{
   var obj = document.getElementById("imgClick");
   var region = document.getElementById("txtRegion");
   
   window.theMap = obj;
   window.theRegion = region;
   
	var oWindow = window.open(url, "_blank", "scrollbars=yes,resizable=yes,width=" + windowWidth+ ",height=" + windowHeight); 
	centerWindow(oWindow, windowWidth, windowHeight); 
	oWindow.focus();
	
	return false;
}

function centerWindow(windowObject, windowWidth, windowHeight) 
{ 
	windowX = (screen.availWidth - windowWidth) / 2; 
	windowY = (screen.availHeight - windowHeight) / 2; 
	windowObject.moveTo(windowX,windowY); windowObject.focus(); 
} 

function noPostBack(sNewFormAction)
{
    if(document.layers) //The browser is Netscape 4
    {
		/*
        document.layers['Content'].document.forms[0].__VIEWSTATE.name = 
                                                           'NOVIEWSTATE';
        document.layers['Content'].document.forms[0].action = 
                                                     sNewFormAction;
		*/                                                     

        document.layers[0].document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
        document.layers[0].document.forms[0].action = sNewFormAction;		
    }
    else //It is some other browser that understands the DOM
    {
        document.forms[0].action = sNewFormAction;
        document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
    }
}

function MapIt()
{
   var region = document.getElementById("txtRegion");
   document.getElementById("lstArea").value = region.value;

}