function openPopup(pic) {
	newwindow=window.open("pic_popup.htm?pic=" + pic,"pic","height=350,width=350,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,titlebar=no,left=300,top=80");
}
function openScrollPopup(pic) {
	newwindow=window.open("pic_popup.htm?pic=" + pic,"scrolling_pic","height=350,width=350,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no,left=50,top=50");
}
function getargs() { 
	var args = new Object(); 
	var query = location.search.substring(1); 
	var pairs = query.split("&"); 
	
	for (var i = 0; i < pairs.length; i++) { 
		var pos = pairs[i].indexOf('='); 
		if (pos == -1) continue; 
		var argname = pairs[i].substring(0,pos); 
		var value = pairs[i].substring(pos+1); 
		args[argname]=value; 
	} 
	return args; 
} 
function writeimage(image){
	document.write("<img src='images/" + image + "' border='0'></TD>");
}
function resize() {
	var width = 350 ;
	var height = 350 ;

	width = document.images[0].width ;
	height = document.images[0].height ;
	if ( width > 800 ) width = 800;
	if ( height > 600 ) height = 600;
	
	if(document.all){
		width = width + 6;
		height = height + 25;
		window.resizeTo(width, height);
	}else{
		width = width + 6;
		height = height + 45;
		window.resizeTo(width, height);
	}
}