var newWin=window,HelpWinCreated=false;
var browser,pre,post,getattrib,setattrib,last,setlast,tipobj,tipobjshad,oPopup;
if(!document.all && document.getElementById){  
// NS6
browser='netscape';
pre='document.getElementById("';
post='").style';
getattrib='").getAttribute("';
setattrib='").setAttribute("';
last='")';
setlast='","")';
}
if(document.all){    
// IE 
browser='ie';
pre='document.all.';
post='.style';
getattrib='.';
setattrib='.';
last='';
setlast='=""';
}
function Rcertify(){
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=103052712454831538','Participant','location=yes,scrollbars=yes,width=650,height=420'); 
window.name = 'opener';}
function clickradios(docvar){
var i,dfe=docvar.forms[0],len=dfe.length;
if (!document.all && document.getElementById){
for(i=0;i<len;i++){
	if(dfe.elements[i].type=='radio' && dfe.elements[i].checked && dfe.elements[i].offsetHeight!=0 && typeof(dfe.elements[i].offsetHeight)!='undefined')dfe.elements[i].click();
}}
else{
for(i=0;i<len;i++){
	if(dfe.item(i).type=='radio' && dfe.item(i).offsetHeight!=0 && dfe.item(i).checked)dfe.item(i).click();
}}}
function clickradiosnew(docformvar){
var i,dfe=docformvar,len=dfe.length;
if (!document.all && document.getElementById){
for(i=0;i<len;i++){
	if(dfe.elements[i].type=='radio' && dfe.elements[i].checked && dfe.elements[i].offsetHeight!=0 && typeof(dfe.elements[i].offsetHeight)!='undefined')dfe.elements[i].click();
}}
else{
for(i=0;i<len;i++){
	if(dfe.item(i).type=='radio' && dfe.item(i).offsetHeight!=0 && dfe.item(i).checked)dfe.item(i).click();
}}}

function numberarray(num){
var arr=new Array();
arr[1]="first";
arr[2]="second";
arr[3]="third";
arr[4]="fourth";
arr[5]="fifth";
arr[6]="sixth";
arr[7]="seventh";
arr[8]="eighth";
arr[9]="ninth";
arr[10]="tenth";
return(arr[num])
}
function popuphelpnew(event,bookmark,size){
var URL=bookmark,xWinPos=event.screenX,yWinPos=event.screenY,wh=150,ww=600;
if(size=="s"){
wh=130;
ww=600;
}
if(size=="m"){
wh=200;
ww=600;
}
if(size=="l"){
wh=300;
ww=600;
}
if(size=="xl"){
wh=600;
ww=600;
}
if(yWinPos>(wh+25))
	yWinPos=yWinPos-wh-25;
else{	
	yWinPos=yWinPos+25;
}
if(xWinPos>(screen.width-ww)){
	xWinPos=screen.width-ww-30;
}
var thirdparam="menubar=0,resizable=1,height="+(wh-31)+",scrollbars=1,top="+yWinPos+",width="+(ww-12)+",left="+xWinPos;
if (!document.all && document.getElementById){
//non IE
if(HelpWinCreated){
	if(newWin.closed){
		newWin=window.open(URL,"Help",thirdparam);
	}
	else{
		newWin=window.open(URL,"Help",thirdparam);
		newWin.resizeTo(ww,wh+25);
		newWin.moveTo(xWinPos,yWinPos);
	}
}
else{
	newWin=window.open(URL,"Help",thirdparam);
}
}
else{
//IE
if(HelpWinCreated){
	if(newWin.closed){
		newWin=window.open(URL,"Help",thirdparam);
		newWin=window.open(URL,"Help",thirdparam);
	}
	else{
		newWin.navigate(URL);	
		try{
			newWin.resizeTo(ww,wh+25);
		}
		catch(e){}
		try{
			newWin.moveTo(xWinPos,yWinPos);
		}
		catch(e){}
	}
}
else{
	newWin=window.open(URL,"Help",thirdparam);
	newWin=window.open(URL,"Help",thirdparam);
}}
newWin.focus();
HelpWinCreated=true;
return false;
}
function popupwin(event,URL,size){
var xWinPos=event.screenX,yWinPos=event.screenY,wh,ww;
if(size=="s"){
wh=375;
ww=500;
}
if(size=="m"){
wh=400;
ww=600;
}
if(size=="ml"){
wh=500;
ww=500;
}
if(size=="l"){
wh=500;
ww=700;
}
if(size=="xl"){
wh=1000;
ww=1000;
}
yWinPos=(screen.height-wh)/2;
yWinPos=Math.round(yWinPos);
xWinPos=(screen.width-ww)/2;
xWinPos=Math.round(xWinPos);
var thirdparam="menubar=0,resizable=1,height="+(wh-31)+",scrollbars=1,top="+yWinPos+",width="+(ww-12)+",left="+xWinPos;
newWin=window.open(URL,"PopupWin",thirdparam);
try{
newWin.resizeTo(ww,wh);
newWin.moveTo(xWinPos,yWinPos);
}
catch(e){}
newWin.focus();
return false;
}
function popupdoc(event,URL){
if (browser=='netscape'){
	window.location=URL;
	return false;
}
else{
	return true;
}}
function newpage1onunload(){
if(HelpWinCreated==true)
	newWin.close();
}
function enable(ctl){
	ctl.disabled=false;
	ctl.style.backgroundColor="#ffffff";
}
function disable(ctl){
	ctl.style.backgroundColor="#c0c0c0";	
	ctl.disabled=true;
}	
function textboxtext(ctl,errorstring){
var namevar=ctl.value;
if(namevar==""){
	alrt(ctl,"Please enter a value for the "+errorstring+".");
	return(false);
}
if (ctl.value.length>100){
 alrt(ctl,"The maximum number of characters allowed (100) has been exceeded in the "+errorstring+" box.");
 return(false);
}
var allspace=false;
for(z=0;z<ctl.value.length;z++){
 ch=ctl.value.charAt(z);
  if(ch==" "){
   allspace=true;
  }
  else{
   allspace=false;
   break;
  }
}
if(allspace){
 alrt(ctl,"Entering only space characters in the "+errorstring+" box is not allowed.");
 return(false);
}
return(true);
}  
function textareatext(ctrl,errorstring){
var namevar=ctrl.value;
if(namevar==""){
	alrt(ctrl,"Please enter a value for the "+errorstring+".");
	return(false);
}
if (ctrl.value.length>400){
 alrt(ctrl,"The maximum number of characters allowed (400) has been exceeded in the "+errorstring+" box.");
 return(false);
}
var allspace=false;
for(z=0;z<ctrl.value.length;z++){
 ch=ctrl.value.charAt(z);
 if(ch==" "){
  allspace=true;
 }
 else{
  allspace=false;
  break;
 }
}
if(allspace){
 alrt(ctrl,"Entering only space characters in the "+errorstring+" box is not allowed.");
 return(false);
}
return(true);
}  
function textboxlength(ctrl,len,errorstring){
var islong=ctrl.value.length;
if(islong!=len){
	alrt(ctrl,"Please enter "+len+" characters in the "+errorstring+" box.");
	return(false);
}
return(true);
}
function textboxcashlength(ctrl,len,errorstring){
var islong=ctrl.value.length;
if(islong>len){
	alrt(ctrl,"The maximum number of characters allowed ("+len+") has been exceeded in the "+errorstring+" box.");
	return(false);
}
return(true);
}
function textboxmaxlen(ctrl,len,errorstring){
var islong=ctrl.value.length;
if(islong>len){
	alrt(ctrl,"The maximum number of characters allowed ("+len+") has been exceeded in the "+errorstring+" box.");
	return(false);
}
return(true);
}
function textboxnumber(ctrl,errorstring){
var checkOK="$0123456789.,",checkStr=ctrl.value,allValid=true;
for(i=0;i<checkStr.length;i++){
	ch=checkStr.charAt(i);
	for(j=0;j<checkOK.length;j++){
		if(ch==checkOK.charAt(j))
			break;
		if(j==checkOK.length-1){
		allValid=false;
		break;
		}
	}
	if(!allValid){
		alrt(ctrl,"Please enter only digit characters in the "+errorstring+" box.");
		return(false);
	}
}
return(true);
}
function textboxzip(ctrl,errorstring){
var checkOK="0123456789- ",checkStr=ctrl.value,allValid=true;
for(i=0;i<checkStr.length;i++){
	ch=checkStr.charAt(i);
	for(j=0;j<checkOK.length;j++){
		if(ch==checkOK.charAt(j))break;
		if(j==checkOK.length-1){
		allValid=false;
		break;
		}
	}
	if(!allValid){
		alrt(ctrl,"Please enter only digit characters in the "+errorstring+" box.");
		return(false);
	}
}
return(true);
}
function joint(ctrl,errorstring){
var jtpat= / and |&/i;
var matcharr=ctrl.value.match(jtpat);
if (matcharr != null){
alrt(ctrl,errorstring);
return false;
}
else{
return(true);
}}
function textboxdate(ctrl,errorstring){
var retval = true;
var pattern = /(\d{1,2})\/(\d{1,2})\/(\d{4})/g;
if (ctrl){
if (ctrl.value.match(pattern)){
var month= RegExp.$1;
var day = RegExp.$2;
var year = RegExp.$3;
if(month.length==1)month="0"+month; 
if(day.length==1)day="0"+day; 
ctrl.value=month+'/'+day+'/'+year;
}
else if (ctrl.value!=""){
alrt(ctrl,"Please enter the "+errorstring+" in MM/DD/YYYY format (example: 12/12/2001)");
retval = false;
}}
return retval;
}
function textboxphone(ctrl,errorstring){
var retval = true;
if (ctrl){
var num = ctrl.value
num = num.replace(/[\(\)\.\-\ ]/g,'');
if (num.substring(0,1)=='1') num=num.substring(1,num.length);
if (num.length==10){num = num.substring(0,3)+'-'+num.substring(3,6)+'-'+num.substring(6,10);}
else if (num!=""){ 
if ((num.substring(0,1)!='0') || (num.length>=20)){
alrt(ctrl,"Please enter the "+errorstring+" as a 10 digit number (example: 206-555-1234)");
retval = false;}}
if (retval) ctrl.value=num;
}
return retval;
}
function textboxssn(ctrl,errorstring){
var retval = true;
if (ctrl){
var num = ctrl.value
if (num!="N/A" && num!="n/a"){
num = num.replace(/[\(\)\.\-\ ]/g,'');
if (num.length==9){num = num.substring(0,3)+'-'+num.substring(3,5)+'-'+num.substring(5,9);}
else if (num!=""){ 
alrt(ctrl,"Please enter a valid Social Security # or enter N/A for "+errorstring+" (example: 999-99-9999)");
retval = false;}
if (retval) ctrl.value=num;
}}
return retval;
}
function textboxemail(ctrl,errorstring){
var emailPat= /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
var tempstr=ctrl.value.replace(/^\s+/,'').replace(/\s+$/,'');
var matchArray=tempstr.match(emailPat);
if (matchArray == null){
alrt(ctrl,"Please enter a valid e-mail address (example: JohnDoe@Anywhere.com)");
return false;
}
else{
return(true);
}}
function textboxemail2(ctl,errorstring){
//var emailPat= /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
//var tempstr=ctrl.value.replace(/^\s+/,'').replace(/\s+$/,'');
//var matchArray=tempstr.match(emailPat);
//if (matchArray == null){
//alrt(ctrl,"Please enter a valid e-mail address (example: JohnDoe@Anywhere.com)");
//return false;
//}
//else{
//return(true);
//}
var namevar=ctl.value;
if(namevar==""){
	alrt(ctl,"Please enter a value for the "+errorstring+".");
	return(false);
}
if (ctl.value.length>100){
 alrt(ctl,"The maximum number of characters allowed (100) has been exceeded in the "+errorstring+" box.");
 return(false);
}
var allspace=false;
for(z=0;z<ctl.value.length;z++){
 ch=ctl.value.charAt(z);
  if(ch==" "){
   allspace=true;
  }
  else{
   allspace=false;
   break;
  }
}
if(allspace){
 alrt(ctl,"Entering only space characters in the "+errorstring+" box is not allowed.");
 return(false);
}
return(true);
}
function getradiovalue(ctrl){
for(j=0;j<ctrl.length;j++){if(ctrl[j].checked) return ctrl[j].value;}
return 0;
}
function radbutton(ctrl,errorstring){
var radioSelected=false;
for(j=0;j<ctrl.length;j++){		 	
if(ctrl[j].checked)radioSelected=true;
}
if(!radioSelected){
alrt("","Please select one of the "+errorstring+" options.");
return(false);
}
return(true);
}
function selectbox(ctrl,errorstring){
var isselected=ctrl.selectedIndex;
  if(isselected<0){
    alrt(ctrl,"Please select one of the "+errorstring+" options.");
    return(false);
  }
  if(isselected==0){
    alrt(ctrl,"The first "+errorstring+" option is not a valid selection.  Please choose one of the other options.");
    return(false);
  }
return(true);  
}
function alrt(ctrl,alertstring){
alert(alertstring);
if(ctrl!="")
ctrl.focus();
}
function removenonvisiblevalues(tF){
var i,len=tF.length;
for(i=0;i<len;i++){
	if(tF[i].offsetHeight==0 || typeof(tF[i].offsetHeight)=='undefined'){
		if(tF[i].type=="text")tF[i].value="";
		else if(tF[i].type=="radio")tF[i].checked=false;
		else if(tF[i].type=="checkbox")tF[i].checked=false;
		else if(tF[i].type=="select-one")tF[i].selectedIndex=0;
		else if(tF[i].type=="textarea")tF[i].value="";
	}
}}
function prompttosave(){
if(document.forms[0].saved.value=="yes"){
 return(true);
}
else{
var save;
 save = confirm ("This will information has not been saved.  If you wish to return to this will later you must save it, click 'OK' to save it now.");
if (save==true){
 clicksave();
 document.forms[0].submit();
 return(false); 
}
else{
 return(true);
}}}
function clickgoback(){
document.forms[0].submitaction.value='goback';
}
function clicklogoff(){
document.forms[0].submitaction.value='logoff';
document.forms[0].submit();
}
function SafeString(ctrl, fieldname){
	var safechars = "abcdefghijklmnopqrstuvwxyz0123456789@_-.";
	var str = ctrl.value.toLowerCase();
	//remove leading and trailing spaces
	str=str.replace(/^\s+/, '').replace(/\s+$/, '');
	for (var i=0; i < str.length; i++) {
    	var ch = str.charAt(i);
    	if (safechars.indexOf(ch) == -1){
			if (ch == ' ')
				alrt(ctrl,"Spaces are not allowed in the " + fieldname + " box.");
			else
				alrt(ctrl,"The character " + ch + " is not allowed in the " + fieldname + " box.  Only letters, numbers, and the following characters are allowed: {'@', '_', '-', '.'} .");
			return false;
		}
	}
	if (str.indexOf("--") >= 0){
		alrt(ctrl,"The string \"--\" is not allowed in the " + fieldname + " box.");
		return false;
	}
	return true;
}
function noEnter(e){
var kC=(e.keyCode) ? e.keyCode : e.which ? e.which : null;
if(kC) return kC != 13;
else return true;
}
function hover(loc,clss){
if(loc.className) loc.className=clss;
}
function itip(){
tipobj=document.getElementById("dhtmltooltip");
tipobj.style.left="0px";
tipobj.style.top="0px";
tipobjshad=document.getElementById("dhtmltooltipshad");
tipobjshad.style.left="0px";
tipobjshad.style.top="0px";
if(typeof document.body.style.maxHeight == "undefined"){oPopup=window.createPopup();}
}

function stip(thetext,evt){
var left,top;
tipobj=document.getElementById("dhtmltooltip");
tipobj.innerHTML='<span class="tiptext">'+thetext+'</span>';
tipobj.style.width=475+"px";
tipobjshad=document.getElementById("dhtmltooltipshad");
tipobjshad.style.width=475+"px";
clientx=evt.clientX;
clienty=evt.clientY;
var screenx=evt.screenX;
var screeny=evt.screenY;

var clientw;
var clienth;
if (self.innerWidth) {
 clientw = self.innerWidth;
 clienth = self.innerHeight;
} 
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){
 clientw = document.documentElement.clientWidth;
 clienth = document.documentElement.clientHeight;
}
else if (document.body){
 clientw = document.body.clientWidth;
 clienth = document.body.clientHeight;
}

var ScrollTop = document.body.scrollTop;
var ScrollLeft= document.body.scrollLeft;

if (ScrollTop == 0){
 if (window.pageYOffset)
  ScrollTop = window.pageYOffset;
}  
 
if (ScrollTop == 0){ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;}
//if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)ScrollTop=0; 
if (ScrollLeft == 0){
 if (window.pageXOffset)
  ScrollLeft = window.pageXOffset;
}  
if (ScrollLeft == 0){ScrollLeft = (document.body.parentElement) ? document.body.parentElement.scrollLeft : 0;}
//if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)ScrollLeft=0; 

var rightedge=clientw-clientx-20;
var bottomedge=clienth-clienty-40;
var leftedge=-1000;
var topedge=clienty-40;

var xyz=0;

if (bottomedge>tipobj.offsetHeight){
tipobj.style.top=ScrollTop+clienty+20+"px";
tipobjshad.style.top=ScrollTop+clienty+20+"px";
top=screeny+20;}
else if (topedge<tipobj.offsetHeight){
tipobj.style.top=ScrollTop+5+"px";
tipobjshad.style.top=ScrollTop+5+"px";
top=5;
xyz=1;}
else{
tipobj.style.top=ScrollTop+clienty-tipobj.offsetHeight-20+"px";
tipobjshad.style.top=ScrollTop+clienty-tipobj.offsetHeight-20+"px";
top=screeny-tipobj.offsetHeight-20;}

if (rightedge<tipobj.offsetWidth && xyz==0){
tipobj.style.left=ScrollLeft+clientx+rightedge-tipobj.offsetWidth+5+"px";
tipobjshad.style.left=ScrollLeft+clientx+rightedge-tipobj.offsetWidth+5+"px";
left=screenx+rightedge-tipobj.offsetWidth+7;}
else if (clientx<leftedge){
tipobj.style.left="5px";
tipobjshad.style.left="5px";
left="5"}
else{
	if (xyz==0 || rightedge>tipobj.offsetWidth){
	tipobj.style.left=ScrollLeft+clientx+5+"px";
	tipobjshad.style.left=ScrollLeft+clientx+5+"px";
	left=screenx+6;}
	else {
	tipobj.style.left=ScrollLeft+clientx-tipobj.offsetWidth-20+"px";
	tipobjshad.style.left=ScrollLeft+clientx-tipobj.offsetWidth-20+"px";
	left=screenx-tipobj.offsetWidth-21;
	}
}

if(document.all && document.getElementById && document.compatMode && !window.XMLHttpRequest){
	tipobjshad.innerHTML='<span class="tiptext">'+thetext+'</span>';	
	tipobjshad.height=tipobj.offsetHeight;
	oPopup=window.createPopup();
	var oPopupBody=oPopup.document.body;
	oPopupBody.innerHTML='<div style="font:13px/15px verdana;border: 1px solid #737373;padding:2px;">'+thetext+'</div>';
	var dpiratio=screen.deviceXDPI/screen.logicalXDPI;
	oPopup.show(Math.round(dpiratio*left), Math.round(dpiratio*top), Math.round(dpiratio*(tipobj.offsetWidth)), Math.round(dpiratio*(tipobj.offsetHeight)),'');
	if(top==5){tipobjshad.style.top=Math.round(tipobjshad.style.top.replace('px',''))-5+'px';}
	tipobjshad.style.visibility="visible";
}
else if(window.XMLHttpRequest && document.all){
	tipobjshad.style.backgroundColor="#FFFFFF";	
	tipobjshad.style.border= "1px solid #737373";
	tipobjshad.innerHTML='<span class="tiptext">'+thetext+'</span>';
	tipobjshad.style.visibility="visible";
}
else{tipobj.style.visibility="visible";
	tipobjshad.style.height=tipobj.offsetHeight+"px";
	tipobjshad.style.top=Math.round(tipobjshad.style.top.replace('px',''))+2+'px';
	tipobjshad.style.left=Math.round(tipobjshad.style.left.replace('px',''))+7+'px';
	tipobjshad.style.visibility="visible";}
return false	
}

function htip(){
tipobjshad.style.visibility="hidden";
tipobjshad.style.left="0px";
tipobjshad.style.top="0px";
tipobj.style.visibility="hidden";
tipobj.style.left="0px";
tipobj.style.top="0px";
if (typeof document.body.style.maxHeight == "undefined"){oPopup.hide();}
}

function checkcounty(countyfield)
{
	var temp1;
	var temp2;
	var err;
	temp1=countyfield.value;
	temp2=temp1;
	temp2=temp2.replace("United States","");
	temp2=temp2.replace("united states","");
	temp2=temp2.replace("America","");
	temp2=temp2.replace("america","");
	temp2=temp2.replace("U.S.A","");
	temp2=temp2.replace("USA","");
	if (temp1!=temp2){
		err=true;
	}
	if (temp1=="USA"){
		err=true;
	}
		if (temp1=="usa"){
		err=true;
	}
	if (temp1=="U.S.A."){
		err=true;
	}
	if (temp1=="u.s.a."){
		err=true;
	}
	if (temp1=="US"){
		err=true;
	}
	if (temp1=="us"){
		err=true;
	}
	if (err==true){
		alert("Please enter the COUNTY not COUNTRY in the county space.");
		countyfield.focus();
		return(false);
	}
	return true;
}
function recordhelpclick(userguidtemp,pagetemp,topictemp){
	var xmlhttp,params;
		if (window.XMLHttpRequest){
			xmlhttp=new XMLHttpRequest();
		}
		else {
			try {
				xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
			}catch(e){
				try {
					xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
				}catch(e){}	
			}
		}
		params='page='+pagetemp;
		if (userguidtemp!=''){
			params=params+'&userguid='+userguidtemp;
		}
		if (topictemp!=''){
			params=params+'&topic='+topictemp;
		}
		xmlhttp.open("POST","recordhelpclicks.asp", true);
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp.setRequestHeader("Content-length", params.length);
		xmlhttp.setRequestHeader("Connection", "close");
		xmlhttp.send(params);
}

function GetTopicText(topicidtemp,statetemp) {
    var element = document.getElementById(topicidtemp);   
    element.innerHTML = '<p><em>Loading ...</em></p>';   

	var xmlhttp,params;
	if (window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
	}
	else {
		try {
			xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try {
				xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){}	
		}
	}
	params='topic='+topicidtemp+'&state='+statetemp;
	xmlhttp.open("POST","gethelptext.asp", true);
	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-length", params.length);
	xmlhttp.setRequestHeader("Connection", "close");
 
    xmlhttp.onreadystatechange = function(){
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200){
		element.innerHTML = xmlhttp.responseText;		
	}}
	xmlhttp.send(params);
 }
 function recaclick(loginidtemp,pagetemp,fieldtemp,fieldvaluetemp,iptemp){
	var xmlhttp,params;
		if (window.XMLHttpRequest){
			xmlhttp=new XMLHttpRequest();
		}
		else {
			try {
				xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
			}catch(e){
				try {
					xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
				}catch(e){}	
			}
		}
		if (loginidtemp!=''){		
			params='loginid='+loginidtemp;}
		else{
			params='';
		}
		if (pagetemp!=''){
			if (params!=''){
			params=params+'&page='+pagetemp;}			
			else{
			params=params+'page='+pagetemp;}
		}
		if (fieldtemp!=''){
			params=params+'&field='+fieldtemp;
		}
		if (fieldvaluetemp!=''){
			params=params+'&fieldvalue='+fieldvaluetemp;
		}
		if (iptemp!=''){
			params=params+'&ipaddress='+iptemp;
		}		
		xmlhttp.open("POST","recaclicks.asp", true);
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp.setRequestHeader("Content-length", params.length);
		xmlhttp.setRequestHeader("Connection", "close");
		xmlhttp.send(params);
}