
function imgPopup(imgSrc) { 
  window.open('/fileview.htm?'+imgSrc, 'imgWindow','width=150,height=150,resizable=1');
}
	
function WinOpen(PageToLoad,Names,w,h,s)	{
		window.open(PageToLoad,Names,'width=' + w + ',height=' + h + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars='+ s + ',resizable=no');
		}
		
function WinSpawn(PageToLoad,Names,w,h,t,l,s)	{
		if (s == 'True' ) {
			sc = 'yes';
			}
		else {
			sc = 'no';
			}
		window.open(PageToLoad,Names,'width=' + w + ',height=' + h + ',top=' + t +',left=' +l +',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars='+ sc + ',resizable=no');
		}

function show(id) {
		if (document.getElementById) document.getElementById(id).style.visibility = "visible"
		else if (document.all) document.all[id].style.visibility = "visible"
		else if (document.layers) document.layers[id].style.visibility = "show"
	}

function hide(id) {
		if (document.getElementById) document.getElementById(id).style.visibility = "hidden"
		else if (document.all) document.all[id].style.visibility = "hidden"
		else if (document.layers) document.layers[id].style.visibility = "hide"
	}
			

function hidereply(){ 
			if (is.ns){document.replyDiv.visibility="hide"}
		 	if (is.ie){replyDiv.style.visibility="hidden"}
			}
		
		
function writereply(){
			if (is.ns){ 		
		  		document.replyDiv.top=window.pageYOffset+150
				document.replyDiv.visibility="show"
				}
			if (is.ie){	
				replyDiv.style.top=document.body.scrollTop+150
				replyDiv.style.visibility="visible"
				}
			}

function SwapVis(id){
		if (document.getElementById(id).style.display == ""){
			show = "none";
		}
		else{
			show = "";
		}
		document.getElementById(id).style.display = show;
	}
	
	

