// POP windows
inc_pop_js =
'<SCRIPT language=JavaScript type=text/javascript>\nfuncti'
+ 'on mkWin1() {\nvar w = 788;\nvar h = 562;\nvar X = (screen.'
+ 'availWidth - w) / 2;\nvar Y = (screen.availHeight - h) / '
+ '2;\nvar popUp1 = window.open("","popUp1","status=no,resiz'
+ 'able=no,width="+w+",height="+h+",left="+X+",top="+Y+"")\n'
+ '}\nfunction mkWin2() {\nvar w = 800;\nvar h = 600;\nvar X = '
+ '(screen.availWidth - w) / 2;\nvar Y = (screen.availHeight'
+ ' - h) / 2;\nvar popUp2 = window.open("","popUp2","status='
+ '0,resizable=yes,width="+w+",height="+h+",left="+X+",top='
+ '"+Y+"")\n}\n</SCRIPT>';

// end_var_declaration
document.write(inc_pop_js);

// backlink
function backlink() {
	this.text = 'Go Back';
	this.type = 'link';
	this.write = backlink_write;
	this.form = true;
}


// write method
function backlink_write() {
	if (! window.history) return;
	if (window.history.length == 0)return;

	this.type = this.type.toLowerCase();
	if (this.type == 'button') {
		if (this.form)
			document.write('<FORM>');
		document.write('<INPUT TYPE=BUTTON onClick="history.back(-1)" VALUE="', this.text, '"');
		if (this.otheratts) document.write(' ', this.otheratts);
		document.write('>');
		if (this.form)document.write('<\/FORM>');
	} else {
		document.write('<A HREF="javascript:history.back(-1)"');
		if (this.otheratts)
			document.write(' ', this.otheratts);
		document.write('>');
		if (this.type == 'image' || this.type == 'img') {
			document.write('<img SRC="', this.src, '" ALT="', this.text, '"');
			if (this.width) document.write(' WIDTH=', this.width);
			if (this.height) document.write(' HEIGHT=', this.height);
			if (this.otherimgatts) document.write(' ', this.otherimgatts);
			document.write(' BORDER=0 />');
		}
		else
			document.write(this.text);
		document.write('<\/A>');
	}
}


// Fix Element
inc_fixElement_js =
'<SCRIPT type="text/javascript" LANGUAGE="JavaScript">\n<!'
+ '-- Begin\nfunction fixElement(element, message) {\nalert(m'
+ 'essage);\nelement.focus();\n}\n\nfunction isFormReady(form) '
+ '{\nvar passed = false;\nif (form.keywords.value == "") {\nf'
+ 'ixElement(form.keywords, "Please enter something to sear'
+ 'ch for!");\n}\n\nelse {\npassed = true;\n}\nreturn passed;\n}\nf'
+ 'unction ViewCrossReference (selSelectObject)\n{\nif(selSel'
+ 'ectObject.options[selSelectObject.selectedIndex].value !'
+ '= "")\n{\nlocation.href=selSelectObject.options[selSelectO'
+ 'bject.selectedIndex].value\n}\n}\n// End -->\n</SCRIPT>	';

// end_var_declaration
document.write(inc_fixElement_js);

//Swap Banner
inc_swapbanner_js =
'<script type="text/javascript"> \n<!-- \nif (document.getE'
+ 'lementById) { window.onload = swap };\n\nfunction swap() {'
+ '\nvar numimages=7;\nrndimg = new Array("images/bnr6.png", '
+ '"images/bnr3.png", "images/bnr4.png"); \nx=(Math.floor(Ma'
+ 'th.random()*numimages));\nrandomimage=(rndimg[x]);\ndocume'
+ 'nt.getElementById("banner").style.backgroundImage = "url'
+ '("+ randomimage +")"; \n}\n//--> \n</script>';

// end_var_declaration
document.write(inc_swapbanner_js);

// Show Hide Layers
inc_ShowHide_js =
'<SCRIPT type="text/javascript" LANGUAGE="JavaScript">\nfu'
+ 'nction MM_reloadPage(init) {  //reloads the window if Na'
+ 'v4 resized\n  if (init==true) with (navigator) {if ((appN'
+ 'ame=="Netscape")&&(parseInt(appVersion)==4)) {\n    docum'
+ 'ent.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onre'
+ 'size=MM_reloadPage; }}\n  else if (innerWidth!=document.M'
+ 'M_pgW || innerHeight!=document.MM_pgH) location.reload()'
+ ';\n}\nMM_reloadPage(true);\n\nfunction MM_findObj(n, d) { //'
+ 'v4.01\n  var p,i,x;  if(!d) d=document; if((p=n.indexOf("'
+ '?"))>0&&parent.frames.length) {\n    d=parent.frames[n.su'
+ 'bstring(p+1)].document; n=n.substring(0,p);}\n  if(!(x=d['
+ 'n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i+'
+ '+) x=d.forms[i][n];\n  for(i=0;!x&&d.layers&&i<d.layers.l'
+ 'ength;i++) x=MM_findObj(n,d.layers[i].document);\n  if(!x'
+ ' && d.getElementById) x=d.getElementById(n); return x;\n}'
+ '\n\nfunction MM_showHideLayers() { //v6.0\n  var i,p,v,obj,'
+ 'args=MM_showHideLayers.arguments;\n  for (i=0; i<(args.le'
+ 'ngth-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v='
+ 'args[i+2];\n    if (obj.style) { obj=obj.style; v=(v==\'sh'
+ 'ow\')?\'visible\':(v==\'hide\')?\'hidden\':v; }\n    obj.visibil'
+ 'ity=v; }\n}\n</SCRIPT>	';

// end_var_declaration
document.write(inc_ShowHide_js);

// --------------------
// Hide focus Border
// --------------------

inc_hidefocbrdr_js =
'<!--\nfunction addEvent(obj, evType, fn){ \n if (obj.addEventL'
+ 'istener){ \n   obj.addEventListener(evType, fn, true); \n'
+ '\n   return true; \n } else if (obj.attachEvent){ \n   va'
+ 'r r = obj.attachEvent("on"+evType, fn); \n   return r; \n'
+ '\n } else { \n   return false; \n } \n}\n\n// Find all li'
+ 'nk elements and add an onfocus attribte and value\nfunct'
+ 'ion hideFocusBorders(){\nvar theahrefs = document.getEle'
+ 'mentsByTagName("a");\nif (!theahrefs){return;}\nfor(var '
+ 'x=0;x!=theahrefs.length;x++){\ntheahrefs[x].onfocus = fu'
+ 'nction stopLinkFocus(){this.hideFocus=true;};\n}\n}\n// -->\n';

// end_var_declaration
document.write(inc_hidefocbrdr_js);


// Validate name and email
inc_validate_js =
'<script language="JavaScript1.2">\nfunction emailvalidat'
+ 'ion(entered,alertbox)\n{\nwith (entered)\n{\napos=value.'
+ 'indexOf("@");\ndotpos=value.lastIndexOf(".");\nlastpos=v'
+ 'alue.length-1;\nif (apos<1 || dotpos-apos<2 || lastpos-d'
+ 'otpos>3 || lastpos-dotpos<2)\n{if (alertbox) {alert(aler'
+ 'tbox);} return false;}\nelse {return true;}\n}\n}\nfunct'
+ 'ion emptyvalidation(entered, alertbox)\n{\nwith (entered'
+ ')\n{\nif (value==null || value=="")\n{if (alertbox!="") '
+ '{alert(alertbox);} return false;}\nelse {return true;}\n'
+ '}\n}\nfunction formvalidation(thisform)\n{\nwith (thisfo'
+ 'rm)\n{\nif (emptyvalidation(Name,"Please enter your '
+ 'name")==false) {Name.focus(); return false;};\nif (e'
+ 'mailvalidation(email,"Please enter a valid E-mail addres'
+ 's")==false) {email.focus(); return false;};\n}\n}\n</scr'
+ 'ipt>';

// end_var_declaration
document.write(inc_validate_js);


inc_hidecontent_js =
'<script type="text/javascript" language="JavaScript"><!-'
+ '-\nfunction HideContent(d) {\ndocument.getElementById(d)'
+ '.style.display = "none";\n}\nfunction ShowContent(d) {\n'
+ 'document.getElementById(d).style.display = "block";\n}\n'
+ 'function ReverseDisplay(d) {\nif(document.getElementById'
+ '(d).style.display == "none") { document.getElementById(d'
+ ').style.display = "block"; }\nelse { document.getElement'
+ 'ById(d).style.display = "none"; }\n}\n//--></script>';

// end_var_declaration
document.write(inc_hidecontent_js);

