
//  Browser check
// API to  check the browser version

var pos = 0;
var isNav, isIE;
var range = "";
var styleObj = "";

if(parseInt(navigator.appVersion) >= 4)
{
	if(document.layers)
	{
		isNav = true;
	}
	else
	{
		if(document.all)
		{
			isIE = true;
			range = "all.";
			styleObj = ".style"	;
		}	
	}
}		

// Convert object name string or object reference 
// into a valid object reference

function getObject(obj)
{
	var theObj;
	if(typeof obj == "string")
	{
		theObj = eval("document." + range + obj)
	}
	else
	{
		theObj = obj;
	}	
	
	return theObj;
}


function getObject1(obj)
{
	var theObj;
	if(typeof obj == "string")
	{
		theObj = eval("document." + range + obj + styleObj)
	}
	else
	{
		theObj = obj;
	}	
	
	return theObj;
}

function mypop(url,title,w,h) {

		/*	
		if(title == null || title == undefined)
		{
			title = "mypop";
		}			
		if(w == null || w == undefined)
		{
			w = 400;
		}	

		if(h == null || h == undefined)
		{
			h = 300;
		}	
		*/
			
                var param = 'width=' + w + ',height=' + h ;

                param += ',resizable=no,scrollbars=yes,top=100,left=100';

                

                var hWnd = window.open(url,title,param);
	//			alert(hWnd.focus);
       // if (hWnd.focus != null) hWnd.focus();
		hWnd.focus();

        }



