function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features,uid) { //v2.0
  
if (uid!="")
	{
	window.open(theURL,winName,features);
	}else
		{
		alert("To participate in this contest Please sign in");
		}
}

function LeftbarIE() {  
var WinSize = window.screen.width ;
if(WinSize > 800) {mic.style.marginLeft  =102}else{
			mic.style.marginLeft  =-10;
			mic.style.visibility ="hidden"; 
		}
}
function LeftBarNs(){
var WinSize = window.screen.width ;
	if(WinSize > 800)
	  document.mic.left = 0;
}

function openPopup(ShowToDo, USerLogin, ForThisUser)
{var ShowToDo=ShowToDo
var UserLogin=UserLogin
var ForThisUser=ForThisUser
if(UserLogin=='True'&&ForThisUser=='True'||ShowToDo=='True')
{var ie=(document.all)?1:0;var version=navigator.appVersion
var xindex=version.indexOf("5.5")
var IsFivePointFive=(xindex>-1)?1:0;theURL="calendar/pop_up.asp"
W=530
H=375
wname="ToDos"
if(ie){CLOSEdwn="calendar/images/close_dwn.gif"
CLOSEup="calendar/images/close_up.gif"
CLOSEovr="calendar/images/close_ovr.gif"
MINIdwn="calendar/images/mini_dwn.gif"
MINIup="calendar/images/mini_up.gif"
MINIovr="calendar/images/mini_ovr.gif"
NONEgrf="main_page_images/spacer.gif"
CLOCKgrf="calendar/images/clock.gif"
titHTML="&nbsp; &nbsp; <font face='Verdana, Arial, Helvetica, sans-serif' size=1 color='333333'>Things to do...<!--a -->"
titWIN="Things to do..."
winBORDERCOLOR="#333333"
winBORDERCOLORsel="#336699"
winBGCOLOR="#efefef"
winBGCOLORsel="#dedede"
if(IsFivePointFive)
mywin=window.open(theURL,wname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=410",true);else
mywin=openchromeless(theURL,wname,W,H,NONEgrf,CLOSEdwn,CLOSEup,CLOSEovr,MINIdwn,MINIup,MINIovr,CLOCKgrf,titHTML,titWIN,winBORDERCOLOR,winBORDERCOLORsel,winBGCOLOR,winBGCOLORsel)
}else
{s=", width="+W+", height="+H
mywin=window.open(theURL,wname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=405",true);}}}

