function DetectBrowser() { var user_Agent=navigator.userAgent.toLowerCase(); // For Navigator var is_ie; var is_nav = ((user_Agent.indexOf('mozilla')!=-1) && (user_Agent.indexOf('spoofer')==-1) && (user_Agent.indexOf('compatible') == -1) && (user_Agent.indexOf('opera')==-1) && (user_Agent.indexOf('webtv')==-1) && (user_Agent.indexOf('hotjava')==-1)); // For Interner Explorer this.is_ie = ((user_Agent.indexOf("msie") != -1) && (user_Agent.indexOf("opera") == -1) && (user_Agent.indexOf("firefox") == -1) ); // For AOL is_aol = (user_Agent.indexOf("aol") != -1); // For Opera is_opera = (user_Agent.indexOf("opera") != -1); // For Web-TV is_webtv = (user_Agent.indexOf("webtv") != -1); // For Hot Java is_hotjava = (user_Agent.indexOf("hotjava") != -1); } function displayModalDialog(url,iwin_name,istyle) { url = url+"&skip=dialog"; var width = 1050; var height = 900; var top = 0; var left = 0; var resize = 0; var scroll = 1; var style = istyle; var sName = ""; var status = 1; var win_name = ""; var min = "yes"; try { if(iwin_name != "") { var temp = iwin_name.toLowerCase(); if(temp.search("=") != -1 || temp.search(",") != -1) { if(temp.search("width") != -1 || temp.search("height") != -1 || temp.search("resizable") != -1 || temp.search("status") != -1 || temp.search("top") != -1 || temp.search("left") != -1) { style = iwin_name; } } else { win_name = iwin_name; } } } catch(e) { win_name = ""; } try { if(style != "" ) { var options = style.split(","); for(var i=0;i