//core.js
//core functionality

//____popups__________________________________________________________________________________________________________________________________
//usage: <a href="mypage.htm" onClick="popUp('mypage.htm','small'); return false;" target="_blank" title="Popup HyperLink">Link Text</a>//usage: <a href="mypage.htm" onClick="popUp('mypage.htm','none',400,550); return false;" target="_blank" title="Popup HyperLink">Link Text</a>//usage: <a href="mypage.htm" onClick="popUp('mypage.htm'); return false;" target="_blank" title="Popup HyperLink">Link Text</a>function popUp(newPage,popMode,popWidth,popHeight)  {	if(popWidth && popHeight){		var popProperties = "width=" + popWidth + ", height=" + popHeight + ", left=0, top=0, scrollbars=1,resizable=yes";	}	else if(popMode=="small"){ //if popMode is feedback		var popProperties = "width=300, height=300, left=0, top=0, scrollbars=1,resizable=yes";	}else{ //if popMode is large or other		var popProperties = "width=610, height=460, left=0, top=0, scrollbars=1,resizable=yes";	}	activityWindow = window.open(newPage, '', popProperties);	activityWindow.focus();}//_________end popups__________________________________________________________________________________________________________________________//_________setting value for scroll attribute of body tag______________________________________________________________________________________

//sets scroll to no for IE/Windows and yes for everything else. This avoids double scroll bars (the style3000 CSS uses divs which have scrolling)

function setScrollValue(){
	if(navigator.userAgent.indexOf("MSIE") != -1 && navigator.platform.indexOf("Mac") == -1){
		document.getElementsByTagName("body")[0].setAttribute("scroll","no");
	}else{
		document.getElementsByTagName("body")[0].setAttribute("scroll","yes");
	}
}
//_________end setting value for scroll attribute of body tag__________________________________________________________________________________