
function in_array(haystack,needle){for(i=0;i<haystack.length;i++)
{if(haystack[i]==needle)
{return true;}}
return false;}
function array_pos(haystack,needle){for(i=0;i<haystack.length;i++)
{if(haystack[i]==needle)
{return i;}}}
function checkEnter(e,formname)
{var characterCode;if(e&&e.which){e=e;characterCode=e.which;}
else{e=event;characterCode=e.keyCode;}
if(characterCode==13)
{if(formname)
{docform=eval('document.forms.'+formname);docform.submit();}
else
{document.forms[0].submit();}
return false;}
else
{return true;}}
function change_submit(hover,divname)
{if(hover=='true')
{document.getElementById(divname+'_on').style.display='none';document.getElementById(divname+'_off').style.display='block';}
else
{document.getElementById(divname+'_on').style.display='block';document.getElementById(divname+'_off').style.display='none';}}