\n"+ "
\n"; }else {return ""} } function behaviorFunction(){ //YY_Calendar(YYwhat,YYleft, YYtop,YYformat) return "YYcalclose,YYgoYear,YYsetMonth,YYgoMonth,YYsetDate,YYcaldraw,YY_Calendar"; } function applyBehavior(uniqueName) { myErr=""; yyleft = escape(document.layers['main'].document.theForm.left.value); yytop = escape(document.layers['main'].document.theForm.top.value); yytextcolor = escape(document.layers['main'].document.theForm.textcolor.value); yybgcolor = escape(document.layers['main'].document.theForm.bgcolor.value); yyindex=document.layers['main'].document.theForm.datefor.selectedIndex; if (yyindex>-1){yyformat = yyfa[yyindex]}else{myErr+="Date Format; "}; retArray = getObjectRefs("NS 4.0", "document", "INPUT"); yydateret=escQ(document.layers['main'].document.theForm.txtreturn.value); myErr+=(yydateret=="")?" Return date to; ":""; myErr+=(yyleft=="")?" Left; ":""; myErr+=(yytop=="")?" Top; ":""; myErr+=(yytextcolor=="")?" Text Color; ":""; myErr+=(yybgcolor=="")?" BG Color; ":""; // alert(document.layers['main'].document.theForm.datefor.selectedIndex); if (!myErr) return "YY_Calendar('"+yydateret+"',"+yyleft+","+yytop+",'"+ yyformat+"\','"+yytextcolor+"','"+yybgcolor+"',\'YY_calendar1\')"; else return "This field(s) are not filled:\n\n"+myErr+"\n__________________________________"; } function inspectBehavior(msgStr){ var argArray = getTokens(msgStr,"()',"); if(argArray.length>0){ document.layers['main'].document.theForm.left.value = argArray[2]; document.layers['main'].document.theForm.top.value = argArray[3]; document.layers['main'].document.theForm.textcolor.value = argArray[5]; document.layers['main'].document.theForm.bgcolor.value = argArray[6]; for (var j=0;j