function delcss(filename)
{
   var ans;
   ans=confirm("sure!!!\nRemove the CSS file???");   
   if(ans)
   {
        document.cssupdownload.delcssname.value=filename;
        return true;
   }
   else
   {
        return false;
   }
}
function getcss(filename)
{  
    document.cssupdownload.downloadcssname.value=filename;    
    return;
}
function gprelink(val1,val2,emailuser)
{
 document.f1.prev.value=1;
 document.f1.next.value=0;
 document.f1.startpages.value=val1;
 document.f1.endpages.value=val2;
 document.f1.start.value=val2;
 document.f1.emailuser.value=emailuser;
 document.f1.submit();
}
function changeEmail()
{
  document.frmmemspo.selEmail.options[document.frmmemspo.selMem.selectedIndex].selected=true;
}
function changeName()
{
   document.frmmemspo.selMem.options[document.frmmemspo.selEmail.selectedIndex].selected=true;
}
function changeUserName()
{
 document.accessform.username.options[document.accessform.selEmail.selectedIndex].selected=true; 
} 

function changeUserEmail()
{
 document.accessform.selEmail.options[document.accessform.username.selectedIndex].selected=true; 
} 
function gnextlink(val1,val2,emailuser)
{

  document.f1.next.value=1;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.endpages.value=val2;
  document.f1.start.value=val2;
  document.f1.startpages.value=val1;
  document.f1.emailuser.value=emailuser;
  document.f1.submit();
}
function gdisplay(val1,startval1,endval2,emailuser)
{
  document.f1.start.value=val1;
  document.f1.startpages.value=startval1;
  document.f1.endpages.value=endval2;
  document.f1.next.value=0;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.emailuser.value=emailuser;
  document.f1.submit();
}
function prexlink(val1,val2)
{
 document.f1.prev.value=1;
 document.f1.next.value=0;
 document.f1.startpages.value=val1;
 document.f1.endpages.value=val2;
 document.f1.start.value=val2;
 document.f1.submit();
}
function nextexlink(val1,val2)
{
  document.f1.next.value=1;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.endpages.value=val2;
  document.f1.start.value=val2;
  document.f1.startpages.value=val1;
  document.f1.submit();
}

function prelink(val1,val2,selectphoto)
{
 document.f1.prev.value=1;
 document.f1.next.value=0;
 document.f1.startpages.value=val1;
 document.f1.endpages.value=val2;
 document.f1.start.value=val2;
 document.f1.selectphoto.value=selectphoto
 document.f1.submit();
}
function pre1link(val1,val2)
{
 document.f2.prev.value=1;
 document.f2.next.value=0;
 document.f2.startpages.value=val1;
 document.f2.endpages.value=val2;
 document.f2.start.value=val2;
 document.f2.submit();
}
function next1link(val1,val2)
{

  document.f2.next.value=1;
  document.f2.prev.value=0;//2 is put for not set that variable
  document.f2.endpages.value=val2;
  document.f2.start.value=val2;
  document.f2.startpages.value=val1;
  document.f2.submit();
}

function nextlink(val1,val2,selectphoto)
{
  document.f1.next.value=1;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.endpages.value=val2;
  document.f1.start.value=val2;
  document.f1.startpages.value=val1;
  document.f1.selectphoto.value=selectphoto
  document.f1.submit();
}
function display(val1,startval1,endval2,selectphoto)
{
  
  document.f1.start.value=val1;
  document.f1.startpages.value=startval1;
  document.f1.endpages.value=endval2;
  document.f1.next.value=0;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.selectphoto.value=selectphoto
  document.f1.submit();
}
function display1(val1,startval1,endval2)
{
  document.f2.start.value=val1;
  document.f2.startpages.value=startval1;
  document.f2.endpages.value=endval2;
  document.f2.next.value=0;
  document.f2.prev.value=0;//2 is put for not set that variable
  document.f2.submit();
}
function displayex(val1,startval1,endval2)
{
  document.f1.start.value=val1;
  document.f1.startpages.value=startval1;
  document.f1.endpages.value=endval2;
  document.f1.next.value=0;
  document.f1.prev.value=0;//2 is put for not set that variable
  document.f1.submit();
}

function goProfile()
{
//window.location.replace('Personal_profiles.22.0.html');
window.location.replace('My_Admin_Page.134.0.html');
}
function displayimage($img,$width,$height)
{  			  
	if($width>600 || $height>600){  
  	if($width>$height){
  	$width=$width*.7;
  	$height=$height*.7;
  	//window.open($img,"image","width="+$width+",height="+$height+",scrollbars=yes");
   	window.open($img,"image","width=600,height=500,scrollbars=yes");
  	}
	else if($width<$height){
  	$width=$width*.7;
  	$height=$height*.7;
  	//window.open($img,"image","width="+$width+",height="+$height+",scrollbars=yes");
   	window.open($img,"image","width=500,height=600,scrollbars=yes");
  	}}
	else {
		$width=$width+10;
  		$height=$height+10;	
  		 window.open($img,"image","width="+$width+",height="+$height+"");}
    
		}
