function loadIFRForApplet(server_name){
	var tdObj = document.getElementById("ifrContainer");
	if(tdObj){
		tdObj.innerHTML = "<iframe src='"+server_name+"' z-index='10' width='973' height='710' frameborder='0' marginheight='0' marginwidth='1' scrolling='no'/>";
	}
}
function loadFrameForNewWin(url){ 
	var frameObj = parent.AppletLoader;
	if(frameObj){
		frameObj.location.href=url;
	}
}

function loadIFRForWWQ(_name){
/*
	var tdObj = document.getElementById("ifrContainer");
	if(tdObj){
		tdObj.innerHTML = "<iframe src='http://www.wwquote.com/wwqApplet.asp?username="+_name+"' z-index='10' width='973' height='600' frameborder='0' marginheight='0' marginwidth='1' scrolling='no'/>";
	}
*/	
	var frameObj = parent.AppletLoader;
	if(frameObj){
		frameObj.location.href="http://www.wwquote.com/wwqApplet.asp?username="+_name;
	}
	else
		{
		Alert("wwquote.applet-----null");
		}
}

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  window.alert( 'Width = ' + screen.width );
  window.alert( 'Height = ' + screen.height );
}
function appletPopWindow(svrURL) {
  var myWidth = window.screen.width;
  var myHeight = window.screen.height;
  myWidth -= 10;
  myHeight -= 50;
  window.open(svrURL+'&xSize='+(myWidth-40)+'&ySize='+(myHeight-20),'','left=0,top=0,width='+myWidth+',height='+myHeight+',addressbar=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no,statusbar=no');
}
function showAppletHelpPopup(strSection, strField){
 var strJsp = "./services/pay_popup_show.jsp";
 window.open(strJsp+"?strSection="+strSection+"&strField="+strField,"","left=50,top=50,width=980,height=750,addressbar=no,toolbar=no,scrollbars=no,resizable=no,menubar=no,statusbar=no");
}
