
var d=document;
show_app=true;
function timeday(fun,num){
	setTimeout(fun,num);
	}
function hideall(){
	d.getElementById("container").style.display="none";
	d.getElementById("container1").style.display="none";
	}
function showhide(tags){
	hideall();
	d.getElementById(tags).style.display="block";	
	}
function showthesis(tags){
	d.getElementById(tags).style.display="inline";	
	}
function hide(tags){
	d.getElementById(tags).style.display="none";
	}

// -------------create popup center ------------------
function PopupCenter(pageURL,title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title,'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, _new, width='+w+', height='+h+', top='+top+', left='+left);

//var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, _new, width='+w+', height='+h+', top='+top+', left='+left);
}
//------------Confirm Delete recorde --------------------------
function ConfirmDelete(target){
       var r=confirm("Are you sure to delete this record?");
if (r==true) {
 	location=target;     
	}	
}

//------------ app_forms ----------------------------------
function app_forms(){
	if(show_app==true){
		d.getElementById('app_form').className="app_form_show";
		show_app=false;
		}
	else{
		d.getElementById('app_form').className="app_form_hide"
		show_app=true;
		}
	}
	
//-----------------------------------------------------------
 d.write("<table width='900' cellpadding='0' cellspacing='0' align='center'>");
 d.write("<tr>");
 d.write("<td width='499'><a href='http://www.bbu.edu.kh' title='Build Bright University'><img src='images/homepage_04.jpg' width='499' height='107' alt='Build Bright University'></a></td>");
 d.write("<td width='399' align='right' valign='top' style='color:#FFF; font-family:Arial, Helvetica, sans-serif; font-size:11px; letter-spacing:1px;'>");
 d.write("<a href='suggestion.php' class='hlink'>Suggestion</a> | <a href='contacts.html' class='hlink'>Contacts Us </a>| <a class=\"hlink\" href=\"javascript:showhide('container1')\">Search</a> | <a class=\"hlink\" href=\"http://mail.bbu.edu.kh\" target='_blank'>BBU Maill</a>");

 d.write("<table border=0 align='right' cellspacing='0' cellpadding='0'>");
 d.write("<tr><td width='100%'>");
 //-------------------mail------------------------
 	d.write("<form method=\"post\" action=\"https://supremecenter49.com/webmail/html/mailbox.php\" style='padding:0px; margin:0px;'>");
		d.write("<div id=\"container\">");	  
			d.write("<div id=\"username\">");
				d.write("Username:<input type=\"text\" name=\"aliasUser\" OnChange=\"addInfo(aliasUser,user)\" class=\"textbox\" autocomplete='off'/> @bbu.edu.kh");
				d.write("<input type=\"hidden\" name=\"user\" id=\"user\" class=\"inputz\">");
				d.write("<input type=\"hidden\" name=\"login\" value=\"Login\">");
			d.write("</div>");
			d.write("<div id=\"password\">");	
				d.write("Password: <input type=\"password\" name=\"pass\" class=\"textbox\"/>");
			d.write("</div>");
			d.write("<div id=\"sign\">");
				d.write(" <input type=\"submit\" id=\"btn\" value=\"Sign in\" />");
       	 		d.write("<input type=\"button\" id=\"btn\" value=\"Cancel\" onClick=\"hide('container')\"/>");
			d.write("</div>");
		d.write("</div>");
	d.write("</form>");
//------------------end mail---------------------	
//--------------------Quick Search---------------
	d.write("<div id=\"container1\">");
		d.write("<div id=\"close\"><a href=\"javascript:hide('container1')\"><img src=\"images/close.gif\"></a></div>");
		d.write("<div id=\"search\">Quick Search:</div>");
		d.write("<div id=\"password\">");
			d.write("<select class=\"txtcombo\" id=\"qsearch\">");
				d.write("<option value=\"1\">The university</option>");
				d.write("<option value=\"2\">Adminision</option>");
				d.write("<option value=\"3\">Tution fee</option>");
        	d.write("</select>");
			d.write("<input type=\"button\" id=\"btn\" value=\"Search\" />");
         d.write("</div>");   
    d.write("</div>"); 
	//-------------------end qucik search---------------   
 d.write("</td></tr>");
 d.write("</table>");

 d.write("</td></tr>");
 d.write("</table>");
 //--------------link to conference in slide show---------------

d.write("<map name='cfl'><area href='cfl.html' title='Click here to view conference' shape=rect coords='1,1,661,247'></map>");
d.write("<map name='pgp'><area href='pgp.html' title='Click here to view conference' shape=rect coords='1,1,661,247'></map>");

 
 
							
                            
						
 
 
 
