function PDFWindowOpen(strtextbox)
{
	var ctrlWidth,ctrlTop
	var myWind
	var strProperties='height=600,width=750,top=100,left=100,scrollbars=yes,resizable=yes,toolbar=no,status=no,menubar=no';
	var winref;
	filename=strtextbox.value
	myWind=window.open(filename,"",strProperties)		
	return false	
}
function do_Submit_CalPhotoGallery()
{
var page_no,totalrec;
totalrec=document.Form1.txttotal.value

page_no=document.Form1.txtpage.value

//Floor_ID = document.Form1.hid_Floor_ID.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	document.location="calPhotoGallery.aspx?Page="+page_no;
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}
function do_Submit_VotingResult()
{
var page_no,totalrec;
totalrec=document.Form1.txttotal.value

page_no=document.Form1.txtpage.value

//Floor_ID = document.Form1.hid_Floor_ID.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	document.location="index.aspx?Page="+page_no;
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}


function do_Submit_Profile()
{
var page_no,totalrec;
totalrec=document.Form1.txttotal.value

page_no=document.Form1.txtpage.value

if (page_no!="" && isNaN(page_no)==false)
{
        if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
        document.location="profile.aspx?Page="+page_no;
        else
        errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}


function ContentWindowOpen(strtextbox)
{
	
	var ctrlWidth,ctrlTop
	var myWind
	var strProperties='height=470,width=510,top=100,left=150,scrollbars=yes,resizable=no,toolbar=no,status=no,menubar=no';
	var winref;
	filename=strtextbox.value
	//alert(filename)
	//myWind=window.open("../includes/Preview.aspx?Filename="+filename,"",strProperties)		
	myWind=window.open("","",strProperties)
	str1='<table cellspacing="0" cellpadding="0" border="0"  width="510">'
	str1=str1+'<tr>'
	str1=str1+'<td background="../images/top_bg.gif" height="91" valign="top">'
	str1=str1+'<table cellspacing="0" cellpadding="0" border="0" width="100%">'
	str1=str1+'<tr>'
	str1=str1+'<td width="50%"><img src="../images/logo.gif" border="0" width="120" height="80"></td>'
	str1=str1+'<td width="50%" align="right">&nbsp;&nbsp;</td>'
	str1=str1+'</tr></table></td></tr><tr><td height="15"><img src="../images/space.gif" align="absmiddle" border="0"></td></tr>'
	str1=str1+'<tr><td align="center"><img src="'+filename +'" align="absmiddle" border="0"></td></tr></table>'
	str1=str1+'<tr><td align="center"><img src="../images/space.gif" align="absmiddle" width="225" border="0"><input align="absmiddle" type = "button" value = "Close" onclick = "javascript:window.close()"></td></tr></table>'
	
	myWind.document.write(str1)
	return false
		
}

function previewWindowOpen(strtextbox)
{
	var ctrlWidth,ctrlTop
	var myWind
	var strProperties='height=470,width=520,top=100,left=150,scrollbars=0,resizable=yes,toolbar=no,status=no,menubar=no';
	var winref;
	filename=strtextbox.value
	fileextn=filename.substr(filename.length - 3, 3);
	fileextn=fileextn.toUpperCase();
	myWind=window.open("","",strProperties)
	str1='<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">'
	str1=str1+'<tr>'
	str1=str1+'<td bgcolor="#FBFBFB" background="../images/top_bg.gif" height="91" valign="top">'
	str1=str1+'<table cellspacing="0" cellpadding="0" border="0" width="100%">'
	str1=str1+'<tr>'
	str1=str1+'<td width="50%"><img src="../images/smalllogo.gif" border="0"></td>'
	str1=str1+'<td width="50%" align="right">&nbsp;&nbsp;</td>'
	str1=str1+'</tr></table></td></tr><tr><td height="15" bgcolor="#4279B5"></td></tr>'
	if(fileextn=="SWF")
	{
		str1=str1+'<tr height=250><td align="center">'
		str1=str1+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="303" height="256" id="Location_flash" align="middle" VIEWASTEXT>'
		str1=str1+'<param name="allowScriptAccess" value="sameDomain" />'
		str1=str1+'<param name="movie" value="'+filename+'" />'
		str1=str1+'<param name="Src" value="'+filename+'" />'
		str1=str1+'<param name="quality" value="high" />'
		str1=str1+'<param name="bgcolor" value="#ffffff" />'
		str1=str1+'<embed src="'+filename+'" quality="high" bgcolor="#ffffff" width="303" height="256" name="Location_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'
		str1=str1+'</td></tr><tr><td align="center"><img src="../images/space.gif" align="absmiddle" width="50" border="0"><input align="absmiddle" type = "button" value = "Close" onclick = "javascript:window.close()"></td></tr></table>'
	}
	else if(fileextn==".RM" || fileextn=="WMV")
	{
		str1=str1+'<tr height=250><td align="center">'
		str1=str1+'<a href="'+filename+'" target="_blank"> View  </a>'
		str1=str1+'</td></tr><tr><td align="center"><img src="../images/space.gif" align="absmiddle" width="50" border="0"><input align="absmiddle" type = "button" value = "Close" onclick = "javascript:window.close()"></td></tr></table>'		
	}
	else if (fileextn=="PDF")
	{
		str1=str1+'<tr height=250><td align="center"><a href="'+filename +'" target=_blank>View PDF </a></td></tr><tr><td align="center"><img src="../images/space.gif" align="absmiddle" width="50" border="0"><input align="absmiddle" type = "button" value = "Close" onclick = "javascript:window.close()"></td></tr></table>'
	}
	else
	{
		str1=str1+'<tr height=250><td align="center"><img src="'+filename +'" align="absmiddle" border="0"></td></tr><tr><td align="center"><img src="../images/space.gif" align="absmiddle" width="50" border="0"><input align="absmiddle" type = "button" value = "Close" onclick = "javascript:window.close()"></td></tr></table>'
	}
	//str1=str1+'<tr><td bgcolor="#F7F7F7" align="center" valign="middle" height="100%"><img src="'+filename +'" border="0"></td></tr></table>'
	myWind.document.write(str1)
	return false					
}
function do_Submit_TeamMembers()
{
var page_no,totalrec,TeamID;
totalrec=document.Form1.TeamsSection_txttotal.value

page_no=document.Form1.TeamsSection_txtpage.value

TeamID = document.Form1.TeamsSection_txtTeamID.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value = page_no;
	document.dosubmit.Hid_TeamID.value = TeamID;
	document.dosubmit.action="team.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}

function do_Submit_FBLTeamMembers()
{
var page_no,totalrec,TeamID,Cur_Page;
totalrec=document.Form1.txttotal.value

page_no=document.Form1.txtpage.value

TeamID = document.Form1.txtTeamID.value

Cur_Page = document.Form1.txtcurpage.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value = page_no;
	document.dosubmit.Hid_TeamID.value = TeamID;
	document.dosubmit.Hid_CurPage.value = Cur_Page;
	document.dosubmit.action="team.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}

function do_Submit_MediaCategory()
{
var page_no,totalrec,Type,curpage;
totalrec=document.Form1.txttotal.value

page_no = document.Form1.txtpage.value
Type    = document.Form1.txtType.value
curpage = document.Form1.txtcurpage.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value    = page_no;
	document.dosubmit.Hid_Type.value    = Type;
	document.dosubmit.Hid_CurPage.value = curpage;
	document.dosubmit.action="Mediaindex.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}

function do_Submit_MediaCategoryDet()
{
var page_no,totalrec,Type,Catname,Std_ID,curpage;
totalrec=document.Form1.txttotal.value

page_no = document.Form1.txtpage.value
Type    = document.Form1.txtType.value
Std_ID  = document.Form1.StdID.value
Catname = document.Form1.Cat_Name.value
curpage = document.Form1.txtcurpage.value


if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value    = page_no;
	document.dosubmit.Hid_Type.value    = Type;
	document.dosubmit.Hid_StdID.value   = Std_ID;
	document.dosubmit.Hid_CatName.value = Catname;
	document.dosubmit.Hid_CurPage.value = curpage;
	document.dosubmit.action="MediaDetail.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}

function do_Submit_GalleryCategory()
{
var page_no,totalrec,Type,curpage;
totalrec=document.Form1.txttotal.value

page_no = document.Form1.txtpage.value
Type    = document.Form1.txtType.value
curpage = document.Form1.txtcurpage.value

if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value    = page_no;
	document.dosubmit.Hid_Type.value    = Type;
	document.dosubmit.Hid_CurPage.value = curpage;
	document.dosubmit.action="Galleryindex.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}

function do_Submit_GalleryDet()
{
var page_no,totalrec,Type,Catname,Std_ID,curpage;
totalrec=document.Form1.txttotal.value

page_no = document.Form1.txtpage.value
Type    = document.Form1.txtType.value
Std_ID  = document.Form1.StdID.value
Catname = document.Form1.Cat_Name.value
curpage = document.Form1.txtcurpage.value


if (page_no!="" && isNaN(page_no)==false)
{
	if(parseInt(page_no)>=1 && parseInt(page_no)<=totalrec)
	{
	document.dosubmit.Hid_Page.value    = page_no;
	document.dosubmit.Hid_Type.value    = Type;
	document.dosubmit.Hid_StdID.value   = Std_ID;
	document.dosubmit.Hid_CatName.value = Catname;
	document.dosubmit.Hid_CurPage.value = curpage;
	document.dosubmit.action="GalleryDetail.aspx";
	document.dosubmit.submit();	
	}
	else
	errordiv.innerHTML="Invalid Page no!"
}
else
errordiv.innerHTML="Please enter the page no!"
}
