<!--
function formActionWD(f,fAction){
	//try{
		controlWindow=window.open(fAction
		,"surveywin"
		,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=300");
		document.all[f].target="surveywin";
		var selfAction=document.all[f].action;
		document.all[f].action=fAction;		
		document.all[f].submit();
		document.all[f].target="_self";
		document.all[f].action=selfAction;
		
		
	//}catch(E){}
}
function reloadPrePage()
{
	var parentWin = window.dialogArguments;
	parentWin.location.reload();
}

function openJsWD(_target,widtha,heighta)
{
window.open(_target, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+widtha+",height="+heighta);
}

function localPageName()
{
	try{
			var   s   =   document.location.href;   
	  	s   =   s.substr(s.lastindexof("/")+1);   
	  return s;
  }catch(E){
  	return "";
  }
}

function print_TransFlash(flash_name,tW,tH)
{
	var flash_a='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+'>'
	+'<embed src="'
	+flash_name
	+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" '
	+'type="application/x-shockwave-flash" width="'
	+tW
	+'" height="'
	+tH
	+'" wmode="transparent" ></embed>'
	+'<param name=WMODE value=Transparent>'
	+'<PARAM NAME=movie VALUE="'
	+flash_name
	+'"></OBJECT>'
	document.write(flash_a);
}

function print_Flash(flash_name,tW,tH)
{
	var flash_a='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+'><PARAM NAME=movie VALUE="'
	+flash_name
	+'"><EMBED src="'
	+flash_name
	+'" WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>'
	document.write(flash_a);
}

function CopyHtml(tDivFrom,tDivTarget,tLen,tVar,keepI_A)
{
	tDivTarget.innerHTML =tDivTarget.innerHTML+tDivFrom.innerHTML;
	try
	{
		for(i=1;i<=tLen;i++)
		{
			var correI=tVar.length-i;
			for(var k=0;k<keepI_A.length;k++)
			if(i.toString() != keepI_A[k].toString())
				tVar[correI].value="";
		}
	}catch(e){

	}
}



function ShowDialog(url, width, height)
{
	try{
	var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
	}catch(e){}
}

//-->

