var user_agent=navigator.userAgent.toLowerCase();
var isIE=false,
isIE3=false,
isIE4=false,
isIE4up=false,
isIE5=false,
isIE5up=false,
isNS=false,
isNS3=false,
isNS4=false,
isNS4up=false,
isNS6=false,
isNS6up=false,
isOpera=false,
is_otherBrowser=false,
app_major=0;
if (user_agent.indexOf('msie')!=-1)
{
isIE=true;
app_major=parseInt(user_agent.substr(user_agent.indexOf("msie ") + 5, 4));
isIE3=(app_major==3);
isIE4=(app_major==4);
isIE4up=(app_major>=4);
isIE5=(app_major==5);
isIE5up=(app_major>=5);
}
else if ((user_agent.indexOf('mozilla') != -1) && (user_agent.indexOf('spoofer') == -1) && (user_agent.indexOf('compatible') == -1) && (user_agent.indexOf('opera')==-1) && (user_agent.indexOf('webtv')==-1))
{
isNS=true;
app_major=parseInt(navigator.appVersion);
isNS3=(app_major==3);
isNS4=(app_major==4);
isNS4up=(app_major>=4);
isNS6=(app_major==5);
isNS6up=(app_major>=5);
}
else if (user_agent.indexOf("Opera")!=-1)
{
isOpera=true;
}
// Other
else
{
is_otherBrowser=true;
}
var isWin=false,isMac=false,isSun=false,isUnix=false;isOtherOS=false;
if (user_agent.indexOf('win')!=-1)
{
isWin=true;
}
else if (user_agent.indexOf('mac')!=-1)
{
isMac=true;
}
else if (user_agent.indexOf('sun')!=-1)
{
isSun=true;
}
else if (user_agent.indexOf('x11')!=-1)
{
isUnix=true;
}
else
{
isOtherOS=true;
}
if(!isIE3 && !isIE4up) oHomePage=this;
function setHomepage(oThis) {
if (isIE5up && isWin)
{
oThis.style.behavior='url(#default#homepage)';
oThis.setHomePage(location.href);
}
else
{
window.open ("default.asp?sid=0&p=80&blip=MAKE_HOMEPAGE", "homepage", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=525,height=500,top=50,left=100");
}
}
function ValidateEmailContentForm(f)
{
var empty_fields='',msg='',errors='';
for (var i=0;i