// THIS FUNCTION WILL RESIZE THE BROWSER TO THE TALL SIZE
function resizeTall() {
  if (navigator.appVersion.indexOf("4.") != -1 &&
     (navigator.appName.indexOf("Netscape") != -1 ||
      navigator.appName.indexOf("Explorer") != -1)){
    size = screen.width + "x" + screen.height;
    if (size == "640x480")  { resizeTo(520,400); }
    if (size == "800x600")  { resizeTo(520,500); }
    if (size == "1024x768") { resizeTo(520,600); }
    if (size == "1152x864") { resizeTo(520,700); }    
    if (size == "1280x1024") { resizeTo(520,800); }
    if (size == "1600x1200") { resizeTo(520,1000); }    
    if (size == "1920x1080") { resizeTo(520,800); }     
    if (size == "1920x1200") { resizeTo(520,1000); }  
    if (size == "1920x1440") { resizeTo(520,1200); }  
    if (size == "2048x1536") { resizeTo(520,1300); }
    if (size == "2304x1440") { resizeTo(520,1200); }               
 
  }
}
//resizeTall()
function resizeSmall()
{
	resizeTo(520,300);
}
function resizeMid()
{
	resizeTo(520,400);
//	document.all.tags("IFRAME").item(1).scrolling="no";
}
function resizeLogin()
{
	window.focus();
	resizeTo(520,500);
}
function exit() {
  parent.close();
}
function openTop() {
  window.focus();
}

function openLink(x) {
  parent.opener.location.href=(x);
  parent.close();
}

function selectOption(Element, Value)
{
	i=0;
	while (i < Element.length) {

		// check for matching value
		if (Element.options[i].value == Value)
			Element.selectedIndex = i; // set
		// continue
		i = i + 1
	}
}