function myprint() {
if (window.print) {
parent.content.focus();
parent.content.print();
}
return false;
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

function showquicklinks( menuform ) {
selecteditem = menuform.quicklinks.selectedIndex ;
gotolink = menuform.quicklinks.options[ selecteditem ].value ;
if ( gotolink.length != 0) {
window.open(gotolink) ;
}
}

function showquicktips( menuform ) {
selecteditem = menuform.quicktips.selectedIndex ;
gototip = menuform.quicktips.options[ selecteditem ].value ;
if ( gototip.length != 0) {
window.open(gototip) ;
}
}

function changethestyle( menuform ) {
selecteditem = menuform.changestyles.selectedIndex ;
gototip = menuform.changestyles.options[ selecteditem ].value ;
if ( gototip.length != 0) {
window.parent.location=gototip;
}
}

var sUserAgent = navigator.userAgent.toLowerCase();
var isIE = document.all?true:false;
var isNS4 = document.layers?true:false;
var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;
var isMoz = (sUserAgent.indexOf('mozilla/5')!=-1 && sUserAgent.indexOf('opera')==-1 && sUserAgent.indexOf('msie')==-1)?true:false;
function pop(oAnchor,sWindow,sProps){
var sUrl = '';
if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');
if(sUrl=='' && isIE) sUrl = window.event.srcElement.getAttribute('href');
if(sUrl=='') sUrl = oAnchor.href;
var sWindowName = sWindow?sWindow:'_blank';
if(!sProps) sProps = 'width=640,height=480,scrollbars,resizable,toolbar,status,menubar,location';
if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);
if(oPopup && !isOp) oPopup.focus();
return (oPopup)?false:true;
}

