function setPopup(ID, pWidth, pHeight) {
	var thisH = document.body.clientHeight;
	var thisW = 0;
	
	if (thisH<900) {
		thisH=700;
		thisW=800;
	}
	if (thisH<1150 && thisH>899) {
		thisH=850;
		thisW=1200;
	}
	
	if (thisH>1149) {
		thisH=1100;
		thisW=1600;
	}
	
	if (thisH<pHeight) {
		pHeight=thisH;
		pWidth=thisW;
	}
	
	var win = "width="+pWidth+",height="+pHeight+",menubar=no,location=no,resizable=no,scrollbars=no";
	newWin = window.open("/enlarge/" + ID + "/"+pWidth+"/",name,win);
	newWin.focus();
	//alert("id=" + ID + " width=" + pWidth + " height=" + pHeight);
}

function setPopup1(ID, pWidth, pHeight) {
	var thisH = document.body.clientHeight;
	var thisW = 0;
	
	if (thisH<900) {
		thisH=700;
		thisW=800;
	}
	if (thisH<1150 && thisH>899) {
		thisH=950;
		thisW=1200;
	}
	
	if (thisH>1149) {
		thisH=1200;
		thisW=1600;
	}
	
	if (thisH<pHeight) {
		pHeight=thisH;
		pWidth=thisW;
	}
	
	var win = "width="+pWidth+",height="+pHeight+",menubar=no,location=no,resizable=no,scrollbars=no";
	newWin = window.open("/ready/" + ID + "/"+pWidth+"/",name,win);
	newWin.focus();
	//alert("id=" + ID + " width=" + pWidth + " height=" + pHeight);
}

function popup2(url) {
	var wind = "width=800,height=630,menubar=no,location=no,resizable=no,scrollbars=no";
	newWind = window.open(url,name,wind);
	newWind.focus();
}

function contactspop() {
	var win = "width=700,height=470,menubar=no,location=no,resizable=no,scrollbars=no";
	newWin = window.open("/contacts/print/",name,win);
	newWin.focus();
}

function mailpop(ID) {
	var win = "width=400,height=420,menubar=no,location=no,resizable=no,scrollbars=no";
	newWin = window.open("/mail/" + ID + "/",name,win);
	newWin.focus();
}