function init(){
	resize();
}

function PopPrint(link){
	
	window.open(link, 'pop', 'width=590,height=575,status=no,toolbar=no,scrollbars=1,menubar=no,screenX=0,screenY=0,resizable=0');
}

/* helps resize the style1 block */
function resize(){
	var aDiv = document.getElementsByTagName("div");
	
	if (aDiv != null){
		for (i=0;i<aDiv.length;i++){
			if (aDiv[i].className == "style1"){
				var style1Cont = aDiv[i].getElementsByTagName("div");
				if (style1Cont[0].offsetHeight > (style1Cont[1].offsetHeight-130)){
					style1Cont[1].style.paddingTop = (style1Cont[0].offsetHeight-260)+"px";
					newHeight = (style1Cont[1].offsetHeight+10);
					aDiv[i].style.height = newHeight+"px";
				}
				else if (style1Cont[1].offsetHeight > aDiv[i].offsetHeight){
					aDiv[i].style.height = (style1Cont[1].offsetHeight-1) ;
				}
			}
		}
	}
}