_url = document.URL;jump = _url+"#top";function jumpLink(_url) { window.location=jump; }if ((navigator.appVersion.indexOf("Mac") != -1)) {document.write("<LINK REL=STYLESHEET HREF=\"http://www.alwayson-network.com//stylesheet/mac.css\" TYPE=\"text/css\" />"); }else {document.write("<LINK REL=STYLESHEET HREF=\"http://www.alwayson-network.com//stylesheet/win.css\" TYPE=\"text/css\" />"); }function reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) { if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}reloadPage(true);function flipLayer() { //v3.0  var i,p,v,obj,args=flipLayer.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=fObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v;}}function LoadImgs() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=LoadImgs.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function fObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=fObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function chProp(objName,x,theProp,theValue) { //v3.0  var obj = fObj(objName);  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");}var this_date = new Date();var month = this_date.getMonth();var today = this_date.getDate()-1;var year = this_date.getYear();var date = new Array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","15","26","27","28","29","30","31");var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");var hours = this_date.getHours();var mins = this_date.getMinutes();if (mins < 10) {mins = "0" +mins} else {mins = mins}function popQ(url,name,W,H) {	window.open(url,name,'WIDTH='+W+',HEIGHT='+H+',toolbar=no,location=no,status=no,scrollbars=auto,resizable=no');}function popX(url,name,W,H) { 	window.open(url,name,'WIDTH='+W+',HEIGHT='+H+',toolbar=no,location=no,status=no,scrollbars=no,resizable=no');}function popN(url,name,W,H) {	window.open(url,name,'WIDTH='+W+',HEIGHT='+H+',toolbar=no,location=no,status=no,scrollbars=auto,resizable=1');}function popS(url,name) {	window.open(url,name,'WIDTH=200,HEIGHT=150,toolbar=no,location=no,status=no,scrollbars=no,resizable=no');}function popM(url,name,W,H,S,L) {	window.open(url,name,'WIDTH='+W+',HEIGHT='+H+',toolbar=no,location='+L+',status=yes,scrollbars='+S+',resizable=yes');}function openEventWindow(){window.open("", "events", "width=380,height=420,toolbar=0,status=0,scrollbars=1,location=0,menubar=1,resizable=1");}function showEventsMessage(){window.status = "Events ";}function hideEventsMessage(){window.status = "";}function showProfileMessage(){window.status = "View Member Profile";}function hideProfileMessage(){window.status = "";}// NOTICE POP COOKIE// Cookie Functions// save/read/delete cookie functions for storing small chunks of data in the browser// 19990326// Copyright (C) 1999 Dan Steinman// Distributed under the terms of the GNU Library General Public License// Available at http://www.dansteinman.com/dynapi/// thanks to: Jesee Chisholm <JCHISHOLM@SENSORMATIC-VPD.com>function saveCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000))		var expires = "; expires="+date.toGMTString()	}	else expires = ""	document.cookie = name+"="+value+expires+"; path=/"}function readCookie(name) {	var nameEQ = name + "="	var ca = document.cookie.split(';')	for(var i=0;i<ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length)		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)	}	return null}function deleteCookie(name) {	saveCookie(name,0,-1)}// BROWSER DETECTIONvar detect = navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;var balert = 0;var burl = "http://www.microsoft.com/downloads/";var cookied = readCookie('balert');function checkIt(string) {	place = detect.indexOf(string) + 1;	thestring = string;	return place;}if (checkIt('konqueror')) {browser = "Konqueror";OS = "Linux";} else if (checkIt('safari')) browser = "Safari"else if (checkIt('omniweb')) browser = "OmniWeb"else if (checkIt('opera')) browser = "Opera"else if (checkIt('webtv')) browser = "WebTV";else if (checkIt('icab')) browser = "iCab"else if (checkIt('msie')) browser = "Internet Explorer"else if (!checkIt('compatible')) {browser = "Netscape Navigator"version = detect.charAt(8);} else { browser = "::UNKNOWN BROWSER::";}if (!version) version = detect.charAt(place + thestring.length);if (!OS) {	if (checkIt('linux')) OS = "Linux";	else if (checkIt('x11')) OS = "Unix";	else if (checkIt('mac')) OS = "Mac"	else if (checkIt('win')) OS = "Windows"	else OS = "an unknown operating system";}if (!cookied) {	if (OS == "Mac") {		if (browser == "Internet Explorer" && version <= "4.9") {balert = balert +1;		} else if (browser == "Netscape Navigator" && version <= "4.9") { burl = "http://channels.netscape.com/ns/browsers/download.jsp";balert = balert +1;		} else if (browser == "Opera") {balert = 0;var y = confirm("Opera for the Mac is still pretty buggy. You may have trouble setting cookies and such.\rA different browsers is highly recommended.\rIf you prefer tabbed browsing, Try Camino? ");			if (y) {window.location.href = "http://www.mozilla.org/projects/camino/";			} else {saveCookie("balert",1,3);alert("Good luck.");			}		}	} else if (OS == "Windows") { 		if (browser == "Internet Explorer" && version <= "4.9") {balert = balert +1;		} else if (browser == "Netscape Navigator" && version <= "4.9") { burl = "http://channels.netscape.com/ns/browsers/download.jsp";balert = balert +1;		}	}	if (balert >=1) {var x = prompt("Your browser ["+browser+" "+version+"] may not display this site at its best. Click OK to upgrade or enter number of days until you see reminder:","");		if ((x=="") || (x==null)) {window.location.href = burl;		} else if (x!="") {saveCookie("balert",1,x);		} else {}	}}// FUNCTION THAT CHECKS IF THERE IS A VALUE FOR SYMB AND GETS QUOTEfunction getQuote() {	if (theForm.symb.value == 0){		alert("Please enter at least 1 symbol") }	else{		window.location.replace("/market/quotes.php?id&"+theForm.symb.value); 	}}function onlaunch() { 	window.open("http://custom.marketwatch.com/custom/alliance/multiquote-launched.asp?astyle=0,0,0,1,0,0,0,0,0,0","launched","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=450,height=250"); } function insertExternalFile(fname,W,H) { if (navigator.appName.indexOf("Microsoft")!=-1  || navigator.appName=="Netscape"      && parseInt(navigator.appVersion)>4 )  {  document.write(''  +'<IFRAME src="'+fname+'" scrolling="no" frameborder=0 border=0'  +(W==null ? '' : ' width='+W)  +(H==null ? '' : ' height='+H)  +'></IFRAME>'  ) } if (navigator.appName=="Netscape"      && parseInt(navigator.appVersion)==4) {  document.write(''  +'<ILAYER>'  +'<LAYER src="'+fname+'" '  +(W==null ? '' : ' width='+W)  +(H==null ? '' : ' height='+H)  +'></LAYER></ILAYER>'  ) }}function keycap() {	if (document.layers) { // NS4+	document.captureEvents(Event.KEYPRESS);	}	if (document.layers || document.all) document.onkeypress = f1; // NS4+ and IE4+	function f1(e) { 	// Check the keypress and submit on enter	if((document.layers && e.which == 13) || (document.all && window.event.keyCode == 13)) {		document.theForm.quote.click(); /* submit with the submit button otherwise NS will ignore the onSubmit */		return false; /* cancel the enter (Dings in Netscape) */		}	}}function loadinparent(url, closeSelf){	self.opener.location = url;	if(closeSelf) self.close();}function over(name) {name.SRC="/images/nav/nav_"+name+"_over.gif";}function valpublog() {var titleLimit = 10; var bodyLimit = 900; var errorCount = 0;var error = "";var error_one = "";var error_two = "";var title = "";var body = "";var titleCount	= document.memblog.title.value.length;var bodyCount 	= document.memblog.body.value.length;var cat 		= document.memblog.catid.value;	if (titleCount!=0) {var title_Str = document.memblog.title.value + " ";var title_wspace_rExp = /^[^A-Za-z0-9]+/gi;var title_trimmedStr = title_Str.replace(title_wspace_rExp, "");var title_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;var title_cleanedStr = title_trimmedStr.replace(title_alphanumerics_rExp, " ");var title_splitString = title_cleanedStr.split(" ");var title_Count = title_splitString.length -1;	}	if (bodyCount!=0) {var body_Str = document.memblog.body.value + " ";var body_wspace_rExp = /^[^A-Za-z0-9]+/gi;var body_trimmedStr = body_Str.replace(body_wspace_rExp, "");var body_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;var body_cleanedStr = body_trimmedStr.replace(body_alphanumerics_rExp, " ");var body_splitString = body_cleanedStr.split(" ");var body_Count = body_splitString.length -1;	}	if (titleCount=="") {		alert("You must supply a Title to publish");return false;errorCount = errorCount+1;	} else if (title_Count>titleLimit) {count = title_Count-titleLimit;title = "\rBlog Title: "+titleLimit+". Remove "+count+" words.";	}	if (bodyCount=="") {		alert("You must supply a Body to publish.");return false;errorCount = errorCount+1;	} else if (body_Count>bodyLimit) {count = body_Count-bodyLimit;body = "\rThe Members Blog entry: "+bodyLimit+". Remove "+count+" words.";	}	if (title !="" || body !="" ) {error_one = "You have exceeded word limits for: "+title+body+"\rPlease edit these fields before publishing.";errorCount = errorCount+1;	}	if (cat=="") {error_two = "\rYou must select a Blog Topic to publish.";errorCount = errorCount+1;	}error = error_one+error_two;	if (errorCount >= 1) {		if (error != "") { alert(error);		}return false;	} else {  return true; 	}}function imgSwap(oImg,which) { 	if (document.images)	document.images[oImg].src = 'http://chart.bigcharts.com/custom/alwayson-com/alwayson-tabchart-'+which+'.gifquote?rnd='+Math.random();}function alphanumeric(e) {var uname = document.register.username.value;var key;var keychar;if (window.event)   key = window.event.keyCode;else if (e)   key = e.which;else   return true;keychar = String.fromCharCode(key);keychar = keychar.toLowerCase();//alert(key);// control keysif ((key==null) || (key==8) || (key==9) || (key==13)   || (key==63232)   || (key==63233)   || (key==63234)   || (key==63235)  )   return true;// alphas and numberselse if ((("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").indexOf(keychar) > -1))	return true;else	return false;}function regval() {var uname = document.register.username.value;var passw = document.register.password.value;var confm = document.register.confirm_pw.value;var signa = document.register.signature.value;var email = document.register.email.value;// USERNAME	if (uname=="") {alert("Please select a User Name");return false;	} else if (uname.length < 4) { alert("User Name must be at least 4 alphanumeric characters");return false;	} else { var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";var allValid = true;		for (i = 0;  i < uname.length;  i++) {ch = uname.charAt(i);			for (j = 0;  j < checkOK.length;  j++)				if (ch == checkOK.charAt(j))break;			if (j == checkOK.length) {allValid = false;break;			}		}		if (!allValid) {alert("User Name must be alphanumeric characters only");return false;		}	}// PASSWORD	if (passw!=confm) {alert("Password and Confirmation do not match. Please try again.");return false;	} else if (passw=="") {alert("You must enter and confirm a password");return false;	} else if (passw.length < 4) {alert("Password must be at least 4 characters long.");return false;}// SCREEN NAME	if (signa=="") {alert("Please select a Screen Name");return false;	}// EMAIL	if (email!="") {var emailStr = document.register.email.value;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s" + specialChars + "\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars + '+';var word="(" + atom + "|" + quotedUser + ")";var userPat=new RegExp("^" + word + "(\\." + word + ")*$");var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");var matchArray=emailStr.match(emailPat);		if (matchArray==null) {alert("Email address seems incorrect (check @ and .'s)");return false;}var user=matchArray[1];var domain=matchArray[2];		if (user.match(userPat)==null) {alert("The username doesn't seem to be valid.");return false; }var IPArray=domain.match(ipDomainPat);		if (IPArray!=null) {	  for (var i=1;i<=4;i++) {				if (IPArray[i]>255) {alert("Destination IP address is invalid!");return false;}}return true;}var domainArray=domain.match(domainPat);		if (domainArray==null) {alert("The domain name doesn't seem to be valid.");return false;}var atomPat=new RegExp(atom,"g");var domArr=domain.match(atomPat);var len=domArr.length;		if (domArr[domArr.length-1].length < 2 || domArr[domArr.length-1].length > 4) {alert("The address must end in a 3 or 4 letter domain, or 2 letter country.");return false;}		if (len<2) {var errStr="This address is missing a hostname!";alert(errStr);return false;}return true;} else {alert("You must supply a valid email address.");return false;}}function regvaltwo() {var reg = document.registertwo;var checkboxes = 0;var fame 	= reg.firstname.value;var lame 	= reg.lastname.value;var titl 	= reg.memtitle.value;var comp 	= reg.company.value;var sect 	= reg.sector.value;var coun 	= reg.country.value;var zipc 	= reg.zipcode.value;var type 	= reg.aotype.value;var a1 = "";var a2 = "";var a3 = "";var a4 = "";var a5 = "";var a6 = "";var a7 = "";var a8 = "";// FIRST NAME	if (fame=="") { var a1 = "First Name\r\n"; }// LAST NAME	if (lame=="") { var a2 = "Last Name\r\n"; }// TITLEif (titl=="") { var a3 = "Title or Position\r\n"; }// COMPANY	if (comp=="") { var a4 = "Company or Affiliation\r\n"; }// SECTOR	if (sect=="") { var a5 = "Industry Sector\r\n"; }// COUNTRY	if (coun=="") { var a6 = "Country\r\n"; }// ZIPCODE	if (zipc=="") { var a7 = "Postal Code\r\n"; }// AOTYPE	if (type=="") { var a8 = "AO Type\r\n"; }		if (a1 != "" || a2 != "" || a3 != "" || a4 != "" || a5 != "" || a6 != "" || a7 != "" || a8 != "") { alert("Please provide the required information");return false;	}}