var lastPopUpWindow = null;
function pop (sCase)
{
	// close the last pop-up.
	try {
		lastPopUpWindow.close ();
	} catch(e) {
	}
	switch (sCase){
		case "towelhead" :
			var newWidth = 600;
			var newHeight = 500;
			lastPopUpWindow = window.open('towelhead.html','_blank','scrollbars=0,resizable=1,width='+ newWidth + ',height=' +newHeight + '');	
		break;		
					
		case "external" :
			var url = pop.arguments[1];
			lastPopUpWindow = window.open(url,"_blank")
		break;
		
		default:
		//	alert("troubleshooting a failed popup -- case: " + sCase);
		break;
	}
}


