function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function')
		window.onload = func;
	else
	{
		window.onload = function()
		{
			if (oldonload) oldonload();
			func();
		}
	}
}

function Set_Cookie( name, value, expires, path, domain, secure )
{
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );

	/*
	if the expires variable is set, make the correct
	expires time, the current script below will set
	it for x number of days, to make it for hours,
	delete * 24, for minutes, delete * 60 * 24
	*/
	if ( expires )
	{
	expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
	( ( path ) ? ";path=" + path : "" ) +
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
}

// this deletes the cookie when called
function Delete_Cookie( name, path, domain )
{
	if ( Get_Cookie( name ) ) document.cookie = name + "=" +
	( ( path ) ? ";path=" + path : "") +
	( ( domain ) ? ";domain=" + domain : "" ) +
	";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

// this function gets the cookie, if it exists
function Get_Cookie( name )
{
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) &&
	( name != document.cookie.substring( 0, name.length ) ) )
	{
	return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}

function getFileExtension(filename)
{
	if( filename.length == 0 ) return "";
	var dot = filename.lastIndexOf(".");
	if( dot == -1 ) return "";
	var extension = filename.substr(dot,filename.length);
	return extension
}

function checkEmail(str) {
///// function for validating email address
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)

		if (str.indexOf(at)==-1){
		    return false
		} else if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		    return false
		} else 	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		} else  if (str.indexOf(at,(lat+1))!=-1){
		    return false
		} else 	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		   return false
		} else  if (str.indexOf(dot,(lat+2))==-1){
		    return false
		} else if (str.indexOf(" ")!=-1){
		     return false
		} else {
 		 	return true
 		}
}

function checkPhone(str)
{
	rePhoneNumber = new RegExp(/^[0-9]{0,3}\s?\-?\s?[0-9]{7,10}$/);
	if (!rePhoneNumber.test(str))
		return false;

	return true;

}

function getHTTPObject()
{
	try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
	try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
	try { return new XMLHttpRequest(); } catch(e) {}
	alert("XMLHttpRequest not supported");
	return null;
 }

function LoadHTML(url)
{

	var xmlHttp = getHTTPObject();
	xmlHttp.open("GET",url, false);
	xmlHttp.onreadystatechange = function()
	{
		   if (xmlHttp.readyState != 4)  { return; }
		   var serverResponse = xmlHttp.responseText;

	}
	xmlHttp.send(null);
	return xmlHttp.responseText;
}
function LoadXML(url)
{
	var xmlHttp = getHTTPObject();
	xmlHttp.open("GET",url, false);
	xmlHttp.onreadystatechange = function()
	{
		   if (xmlHttp.readyState != 4)  { return; }
		   var serverResponse = xmlHttp.responseText;
	};
	xmlHttp.send(null);
	return xmlHttp.responseXML.documentElement;
}

function isUrl(s) {
    	var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
     	return regexp.test(s);
}


function IsNumeric(sText)
{
   var ValidChars = "0123456789.-, ";
   var IsNumber=true;
   var Char;


   for (i = 0; i < sText.length && IsNumber == true; i++)
      {
      Char = sText.charAt(i);
      if (ValidChars.indexOf(Char) == -1)
         {
         IsNumber = false;
         }
      }
   return IsNumber;
 }

function trim(strText) {
/// TRIM STRING FUNCTION
    // this will get rid of leading spaces
    while (strText.substring(0,1) == ' ')
        strText = strText.substring(1, strText.length);
    // this will get rid of trailing spaces
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);
   return strText;
}

function escapeString(sString)
{
// DETECT WHAT TO PUT STRING IN FOR HTML FORM ( ' OR " ) DEPANDING ON STRING CONTENTS
	if (sString.indexOf("'") == -1)
		valSep = "'";
	else
		valSep = '"';
	return valSep+sString+valSep;
}

function replaceSubstring(inputString, fromString, toString) {
 // GOES THROUGH THE INPUTSTRING AND REPLACES EVERY OCCURRENCE OF FROMSTRING WITH TOSTRING
   var temp = inputString;
   if (fromString == "") {
      return inputString;
   }
   if (toString.indexOf(fromString) == -1) { // If the string being replaced is not a part of the replacement string (normal situation)
      while (temp.indexOf(fromString) != -1) {
         var toTheLeft = temp.substring(0, temp.indexOf(fromString));
         var toTheRight = temp.substring(temp.indexOf(fromString)+fromString.length, temp.length);
         temp = toTheLeft + toString + toTheRight;
      }
   } else { // String being replaced is part of replacement string (like "+" being replaced with "++") - prevent an infinite loop
      var midStrings = new Array("~", "`", "_", "^", "#");
      var midStringLen = 1;
      var midString = "";
      // Find a string that doesn't exist in the inputString to be used
      // as an "inbetween" string
      while (midString == "") {
         for (var i=0; i < midStrings.length; i++) {
            var tempMidString = "";
            for (var j=0; j < midStringLen; j++) { tempMidString += midStrings[i]; }
            if (fromString.indexOf(tempMidString) == -1) {
               midString = tempMidString;
               i = midStrings.length + 1;
            }
         }
      } // Keep on going until we build an "inbetween" string that doesn't exist
      // Now go through and do two replaces - first, replace the "fromString" with the "inbetween" string
      while (temp.indexOf(fromString) != -1) {
         var toTheLeft = temp.substring(0, temp.indexOf(fromString));
         var toTheRight = temp.substring(temp.indexOf(fromString)+fromString.length, temp.length);
         temp = toTheLeft + midString + toTheRight;
      }
      // Next, replace the "inbetween" string with the "toString"
      while (temp.indexOf(midString) != -1) {
         var toTheLeft = temp.substring(0, temp.indexOf(midString));
         var toTheRight = temp.substring(temp.indexOf(midString)+midString.length, temp.length);
         temp = toTheLeft + toString + toTheRight;
      }
   } // Ends the check to see if the string being replaced is part of the replacement string or not
   return temp; // Send the updated string back to the user
}

function popupWin(popUrl, width, height)
{
	if (!navigator.appName.indexOf("Microsoft")) width+=20;
	height+=5;
	topVar=((screen.height / 2)-(height/2));
	leftVar=((screen.width / 2)-(width/2));
	window.open(popUrl, "PopUp", "height="+height+", width="+width+", top="+topVar+", left="+leftVar+", scrollbars=yes, status=no, location=no, resize=yes, menubar=no, titlebar=no, toolbar=no");
}

function getFlashMovie(movieName)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function buttonOver(cButton)
{
	fMovie = getFlashMovie("f_flashProccess");
	fMovie.jsOver(null, cButton);
}

function buttonOut(cButton)
{
	fMovie = getFlashMovie("f_flashProccess");
	fMovie.jsOut(null, cButton);
}

function fix_external_links() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");

	var basicPattern = new RegExp('^(http:\/\/|https:\/\/)');
	var pattern = new RegExp('^(http:\/\/|https:\/\/)'+location.hostname);

	for (var i = 0; i < anchors.length; i++)
	{
		var anchor = anchors[i];
		if (anchor.getAttribute("rel") && anchor.getAttribute("rel") == "external") {
			anchor.target = "_blank";
		}
		else if (!anchor.href.match(basicPattern)){  // this is for links such as "javascript" or "#" which do not include http or https at all !!
			continue;
		}
		else if (!anchor.href.match(pattern) && anchor.getAttribute("rel") != "ibox") {
			anchor.target = "_blank";
		}
	}
}

function showCasePictures(caseID, picNum)
{
	var pictureContainer = document.getElementById("pictures");
	var url = _base+"/tyco_ajax.php?action=casePictures&id="+caseID+"&picNum="+picNum;
	var contents = LoadHTML(url);
	if(contents != null)
	{
		pictureContainer.innerHTML = contents;
	}
	return false;
}

function switchNetadminParagraph(cElement)
{
	// check current element status for later use
	el = cElement.previousSibling;
	while (el.nodeType != 1)	el = el.previousSibling;
	var cStatus = (el.style.display == "block") ? true : false;

	// first, close all open paragraphs
	var paragraphs = document.getElementsByTagName("p");

	for (var i = 0; i < paragraphs.length; i++)
	{
		var par = paragraphs[i];
		if (par.className == "marg")
		{
			par.style.display = "block";
		}

		if (par.className == "marg naHidden" || par.className == "marg naHidden ")
		{
			par.style.display = "none";
			el = par.nextSibling;
			while (el.nodeType != 1)	el = el.nextSibling;
			el.firstChild.nodeValue = _moreInfo;
		}
	}

	// now open current long text
	if (!cStatus)
	{
		cElement.firstChild.nodeValue = _closeInfo;

		el = cElement.previousSibling;
		while (el.nodeType != 1)	el = el.previousSibling;
		el.style.display = "block";

		el = el.previousSibling;
		while (el.nodeType != 1)	el = el.previousSibling;
		el.style.display = "none";
	}

}

// NEWS SCROLLER FUNCTIONS //

function startScroller(){
	if (sc_totalPosition>maxScroll){
		document.getElementById(sc_id).scrollTop=-1;
		sc_totalPosition=0;
	}
	scroll_pause=setTimeout("sc_main()", sc_delay);
}

function sc_main(){
		scroll_Int=setInterval ("scrollNews()",sc_speed);
}

function scrollNews(){
	if (sc_curPosition > sc_height){
		sc_curPosition=0;
		clearInterval(scroll_Int);
		startScroller();
	} else {
		sc_totalPosition+=sc_sAmount;
		sc_curPosition+=sc_sAmount;
		document.getElementById(sc_id).scrollTop=sc_totalPosition;
	}
}

function scControl(cntrlMethod){
	clearTimeout(scroll_pause);
	if (!cntrlMethod){
		clearInterval(scroll_Int);
	} else {
		sc_main();
	}

}

function scLink(curLink){
	location.href=curLink;
}

function netAdminLogin(siteName, userName, password)
{
	var url =_base+"/tyco_ajax.php?action=netAdminLogin&login_siteName="+siteName+"&login_userName="+userName+"&login_password="+password;
	var loginUrl = LoadHTML(url);
	if(loginUrl != null && loginUrl != "")
	{
		window.open(loginUrl);
	}
	else
	{
		alert (_netadminconnect_error);
	}
}

function reloadCaptcha(elem_id)
{
	if (elem_id == null) elem_id = "captcha_image";
	var captcha = document.getElementById(elem_id);
	captcha.innerHTML = "<img src=\""+_base+"/CaptchaSecurityImages.php\" align=\"absmiddle\">";
}

function submitContact(f)
{
	// disable submit button and change its class
	submitButton = document.getElementById("submitForm");
	submitButton.className = "submitDisabled";
	submitButton.disabled = true;

	ReqFields = new Array("contact_fName","contact_email","contact_phone1","contact_security");
	for (i=0;i<ReqFields.length; i++)
	{
		fieldName = ReqFields[i];
		if (trim(f[fieldName].value) == "")
		{
			cMessage = eval("_"+fieldName);
			alert(cMessage);
			f[fieldName].focus();
			releaseSubmitDisabled(submitButton);
			return false;
		}

		if (fieldName == "contact_email" && !checkEmail(f[fieldName].value))
		{
			alert(_contact_emailInvalid);
			f[fieldName].focus();
			releaseSubmitDisabled(submitButton);
			return false;
		}

		if (fieldName == "contact_phone1" && !checkPhone(f[fieldName].value))
		{
			alert(_contact_phoneInvalid);
			f[fieldName].focus();
			releaseSubmitDisabled(submitButton);
			return false;
		}

		if (f.contact_phone2.value != "" && !checkPhone(f.contact_phone2.value))
		{
			alert(_contact_phoneInvalid);
			f.contact_phone2.focus();
			releaseSubmitDisabled(submitButton);
			return false;
		}

		if (fieldName == "contact_security")
		{
			var url = _base+"/tyco_ajax.php?action=get_session&session_name=security_code";
			var security_code = LoadHTML(url);
			if(security_code != null && trim(f[fieldName].value) != security_code)
			{
				alert(_contact_security);
				f[fieldName].focus();
				releaseSubmitDisabled(submitButton);
				return false;
			}
		}
	}

	if (f.contact_resume && f.contact_resume.value !="")
	{
		// check and restrict upload file extension
		extension = getFileExtension(f.contact_resume.value);
		var pattern = /^\.(doc|pdf|txt)/i;
		if (!extension.match(pattern))
		{
			alert (_contact_fileType);
			releaseSubmitDisabled(submitButton);
			return false;
		}
	}

//	if (confirm(_contact_confirm))
	{
		if (f.contact_resume && f.contact_resume.value !="")
		{
			f.target = "postFrame";
			postFrame = document.getElementById("postFrame");
			postFrame.onload = uploadDone;
			return true;
		}
		else
		{
			advAJAX.submit(f, {
			    onSuccess : function(obj) {
			    		if (obj.responseText == "success")
			    		{
			    			alert (_contact_success);
			    			f.reset();
			    			reloadCaptcha();
			    			releaseSubmitDisabled(submitButton);
			    		}
			    		else
			    		{
			    			alert (_contact_fail);
			    			releaseSubmitDisabled(submitButton);
			    		}
			    }
			});
		}
		return false;
	}

	releaseSubmitDisabled(submitButton);
	return false;
}

function uploadDone() { //Function will be called when iframe is loaded
	var postFrame = (document.getElementById("postFrame").contentDocument ) ? document.getElementById("postFrame").contentDocument : document.getElementById("postFrame").contentWindow.document;
	var ret = postFrame.getElementsByTagName("body")[0].innerHTML;
	f = document.getElementById("jobsContactForm");
	submitButton = document.getElementById("submitForm");

	if(ret == "success") {
		alert (_contact_success);
		f.reset();
		releaseSubmitDisabled(submitButton);
	}
	else
	{
		alert (_contact_fail);
		releaseSubmitDisabled(submitButton);
	}
}


function clearForm(f)
{
	if (confirm(_contact_clear))
	{
		f.reset();
	}
}

function releaseSubmitDisabled(submitButton, submitClass)
{
	if (submitClass == null || submitClass == undefined) submitClass = "submit";
	submitButton.className = submitClass;
	submitButton.disabled = false;
}

function unsubscribe(f)
{
	if (confirm(_unsubscribe))
	{
		advAJAX.submit(f, {
		    onSuccess : function(obj) {
		    		alert (obj.responseText);
		    }
		});
	}
	return false;
}

function submitWhois(f)
{
	// disable submit button and change its class
	submitButton = document.getElementById("submitForm");
	submitButton.className = "submitLargeDisabled";
	submitButton.disabled = true;

	// remove http://, https://, www. whitespace and all domain endings from search string
	var pattern = new RegExp('^(http:\/\/|https:\/\/)?(www.)?');
	f.whois_domain.value = f.whois_domain.value.replace(pattern,"");

	cb = document.getElementsByName("whois_types[]");
	cbLength = cb.length;
	for (i=0; i<cbLength; i++)
	{
		f.whois_domain.value = f.whois_domain.value.replace(cb[i].value, "");
		checkStat=true;
	}

	f.whois_domain.value = trim(f.whois_domain.value);

	if (f.whois_domain.value == "")
	{
		alert (_whois_empty);
		f.whois_domain.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}


	advAJAX.submit(f, {
			disableForm : false,

			onInitialization : function(obj) {
					resultsDiv = document.getElementById("domainresults");
					resultsDiv.className = "results_dotted";

					var fo = new FlashObject(_base+"/flashFiles/whois_init.swf", "f_whois_init", "467", "73", "9", "#FFFFFF");
					fo.addParam("quality", "best");
					fo.addParam("wmode", "transparent");
					fo.write("domainresults");
				},

			onSuccess : function(obj) {
					resultsDiv = document.getElementById("domainresults");
					if (obj.responseText != "")
					{
						resultsDiv.innerHTML = obj.responseText;
						fix_external_links();
						releaseSubmitDisabled(submitButton, "submitLarge");
					}
					else
					{
						resultsDiv.innerHTML = "";
						resultsDiv.className = "";
						alert (_whois_fail);
						releaseSubmitDisabled(submitButton, "submitLarge");
					}
				}
			});

	return false;
}

function show_whois(info)
{
	iBox.show(unescape(info));
}


function whois_checkAll(link)
{
	doc_elements = document.getElementsByName("whois_types[]");
	checkStatus = true;
	for (a = 0; a < doc_elements.length; a++)
	{
		if (!doc_elements[a].checked)
		{
			checkStatus = false;
		}
	}

	for (a = 0; a < doc_elements.length; a++)
	{
		doc_elements[a].checked = (checkStatus) ? false : true;
	}

	linkChildren = link.childNodes;
	for (a = 0; a < linkChildren.length; a++)
	{
		if (linkChildren[a].tagName == "SPAN")
		{
			linkChildren[a].firstChild.nodeValue = (checkStatus) ? _checkAll : _uncheckAll;
		}
	}

	return false;
}

function changeCheckStat()
{
	doc_elements = document.getElementsByName("whois_types[]");
	checkStatus = true;
	for (a = 0; a < doc_elements.length; a++)
	{
		if (!doc_elements[a].checked)
		{
			checkStatus = false;
		}
	}

	link_elements = document.getElementsByTagName("A");
	for (i = 0; i < link_elements.length; i++)
	{
		link = link_elements[i];
		linkChildren = link.childNodes;
		for (a = 0; a < linkChildren.length; a++)
		{
			linkSpan = linkChildren[a];
			if (linkSpan.tagName == "SPAN" && (linkSpan.firstChild.nodeValue == _checkAll || linkSpan.firstChild.nodeValue == _uncheckAll))
			{
				linkSpan.firstChild.nodeValue = (checkStatus) ?  _uncheckAll : _checkAll;
			}
		}
	}

}

function checkFocus(fField, fValue)
{
	if (fField.value == fValue) fField.value = "";
	fField.className = "contactinp check";
	fField.focus();
}

function checkBlur(fField, fValue)
{
	if (fField.value == "" || fField.value == fValue)
	{
		fField.value = fValue;
		fField.className = "contactinp check defValue";
	}
}

function submitPagerank (f)
{
	resultsDiv = document.getElementById("pr_result");
	resultsDiv.style.display = "none";

	submitButton = document.getElementById("submitForm_pagerank");
	submitButton.className = "submitLargeDisabled";
	submitButton.disabled = true;

	if (f.pagerank_url.value == "" || f.pagerank_url.value == _pagerank_def)
	{
		alert (_pagerank_def);
		f.pagerank_url.focus();
		releaseSubmitDisabled(submitButton);
		return false;
	}

	resultsDiv.style.display = "block";
	resultsDiv.innerHTML = "";
	showCheckInit("pr_result");

	advAJAX.submit(f, {
			disableForm : false,
			onSuccess : function(obj) {
					resultsDiv.innerHTML = obj.responseText;
					resultsDiv.style.display = "block";
					releaseSubmitDisabled(submitButton, "submitLarge");
				}
			});

	return false;
}

function submitGooglepos (f)
{
	resultsDiv = document.getElementById("pos_result");
	resultsDiv.style.display = "none";

	submitButton = document.getElementById("submitForm_googlepos");
	submitButton.className = "submitLargeDisabled";
	submitButton.disabled = true;

	if (f.pos_url.value == "" || f.pos_url.value == _pagerank_def)
	{
		alert (_pagerank_def);
		f.pos_url.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	if (f.pos_keywords.value == "")
	{
		alert (_pos_keywords);
		f.pos_keywords.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	if (f.contact_security.value == "")
	{
		alert (_contact_security);
		f.contact_security.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	var url = _base+"/tyco_ajax.php?action=get_session&session_name=security_code";
	var security_code = LoadHTML(url);
	if(security_code != null && trim(f.contact_security.value) != security_code)
	{
		alert(_contact_security);
		f.contact_security.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	resultsDiv.innerHTML = "";
	resultsDiv.style.display = "block";
	showCheckInit("pos_result");

	var pattern = new RegExp('^(http:\/\/|https:\/\/)');
	f.pos_url.value = f.pos_url.value.replace(pattern,"");

	advAJAX.submit(f, {
			disableForm : false,
			onSuccess : function(obj) {
					resultsDiv.innerHTML = obj.responseText;
					releaseSubmitDisabled(submitButton, "submitLarge");
					reloadCaptcha('pos_captcha');
					f.contact_security.value = "";
				}
			});


	return false;
}

function submitGoogleinfo (f)
{
	resultsDiv = document.getElementById("info_result");
	resultsDiv.style.display = "none";

	submitButton = document.getElementById("submitForm_info");
	submitButton.className = "submitLargeDisabled";
	submitButton.disabled = true;

	if (f.info_url.value == "" || f.info_url.value == _pagerank_def)
	{
		alert (_pagerank_def);
		f.info_url.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	resultsDiv.style.display = "block";
	resultsDiv.innerHTML = "";
	showCheckInit("info_result");

	var pattern = new RegExp('^(http:\/\/|https:\/\/)');
	f.info_url.value = f.info_url.value.replace(pattern,"");

	advAJAX.submit(f, {
			disableForm : false,
			onSuccess : function(obj) {
					resultsDiv.innerHTML = obj.responseText;
					releaseSubmitDisabled(submitButton, "submitLarge");
				}
			});

	return false;
}

function submitAlexarank (f)
{
	resultsDiv = document.getElementById("alexa_result");
	resultsDiv.style.display = "none";

	submitButton = document.getElementById("submitForm_alexa");
	submitButton.className = "submitLargeDisabled";
	submitButton.disabled = true;

	if (f.alexa_url.value == "" || f.alexa_url.value == _pagerank_def)
	{
		alert (_pagerank_def);
		f.alexa_url.focus();
		releaseSubmitDisabled(submitButton, "submitLarge");
		return false;
	}

	resultsDiv.style.display = "block";
	resultsDiv.innerHTML = "";
	showCheckInit("alexa_result");

	var pattern = new RegExp('^(http:\/\/|https:\/\/)');
	f.alexa_url.value = f.alexa_url.value.replace(pattern,"");

	var pattern = new RegExp('^(www.)');
	f.alexa_url.value = f.alexa_url.value.replace(pattern,"");

	advAJAX.submit(f, {
			disableForm : false,
			onSuccess : function(obj) {
					resultsDiv.innerHTML = obj.responseText;
					releaseSubmitDisabled(submitButton, "submitLarge");
				}
			});

	return false;

}

function showCheckInit(resultsDiv)
{
	var fo = new FlashObject(_base+"/flashFiles/check_init.swf", "f_check_init", "195", "25", "9", "#FFFFFF");
	fo.addParam("quality", "best");
	fo.addParam("wmode", "transparent");
	fo.write(resultsDiv);
}