﻿function winopen(){
	window.open("Investigation_View.asp","a","width=450,height=220,left=320,top=250,scrollbars222=yes");
}
function DrawImage(ImgD,Iwidth){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>Iwidth){
		ImgD.width=Iwidth;
		ImgD.height=image.height/(image.width/Iwidth);     
		}
		else{
		ImgD.width=image.width;
		ImgD.height=image.height;
		}
		ImgD.alt=image.width+"×"+image.height;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function popRollover(id) 
{
var x; if ((x=MM_findObj(id))!=null){ x.style.visibility = 'visible'; } 
} 

function popRollout(id) {
var x; if ((x=MM_findObj(id))!=null){ x.style.visibility = 'hidden'; } 
} 

if(screen.width==800){
document.getElementsByTagName("link")[1].href="incfiles/menu02.css"; 
}
else if(screen.width==1024){
document.getElementsByTagName("link")[1].href="incfiles/menu01.css"; 
}
else if(screen.width==1280){
document.getElementsByTagName("link")[1].href="incfiles/menu03.css"; 
}
else{
document.getElementsByTagName("link")[1].href="incfiles/menu01.css"; 
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
