function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in the " + document.title;
mail_str += ". You can view this page via, " + location.href;
location.href = mail_str;
}



top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}




function resizeMe(obj){
docHeight = mainframe.document.body.scrollHeight

obj.style.height = docHeight 

}


function sendMyForm(){
	var mylogin;
	mylogin = document.logon.txtlogin.value;
	mylogin = mylogin + "@miricouncil.gov.my";
	document.logon.userid.value = mylogin;
}

function brief() {
    win2 = window.open("print/brief_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function profile() {
    win3 = window.open("print/profile_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function bg() {
    win4 = window.open("print/bg_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function message() {
    win5 = window.open("print/message_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function coun() {
    win6 = window.open("print/coun_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function func() {
    win7 = window.open("print/func_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function admin() {
    win8 = window.open("print/admin_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function dpt() {
    win9 = window.open("print/dpt_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function mag() {
    win10 = window.open("print/mag_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function org() {
    win11 = window.open("print/org_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function events() {
    win12 = window.open("print/event_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press() {
    win13 = window.open("print/press_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press1() {
    win14 = window.open("print/press_print1.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press2() {
    win15 = window.open("print/press_print2.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press3() {
    win16 = window.open("print/press_print3.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press4() {
    win17 = window.open("print/press_print4.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function press5() {
    win17 = window.open("print/press_print5.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function miri() {
    win17 = window.open("print/miri_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function introm() {
    win17 = window.open("print/intro_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function place() {
    win17 = window.open("print/place_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function how() {
    win17 = window.open("print/how_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function map() {
    win17 = window.open("print/map_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

function contact() {
    win17 = window.open("print/contact_print.html", "Window",
    "width=700,height=300,scrollbars=yes");
}

//


















function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
