
 
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}



function showtime (){
var now = new Date();
var hours= now.getHours();
var minutes= now.getMinutes();
var seconds= now.getSeconds();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+  years
var ap="AM"
if (hours == 12) {
ap = "PM"
}
if (hours == 0) {
hours = 12
}
if(hours >= 13){
hours -= 12;
ap="PM"
}
var timeValue2 = " " + hours
timeValue2 += ((minutes < 10) ? ":0":":") + minutes + " " + ap
return timeValue2;
}


var cur
function show(id) {
		
    	if (cur) {
			eval('childs'+cur+'.style.display=\'none\'');
				}

		if (eval('childs'+id).style.display=='') {
			eval('childs'+id+'.style.display=\'none\'');
		} else {
			eval('childs'+id+'.style.display=\'\'');
		}
	cur=id
}

<!--
function bookmark(url, description)
{
netscape="You are using NETSCAPE ! \r First push [OK] and then hit [CTRL+D] on your keyboard \r to add Sharjah Commerce and Tourism Development Authority site to your Bookmarks."
if (navigator.appVersion.indexOf("AOL") != -1) { 
alert("You are using AOL ! \r First push [OK] and then hit [CTRL +] on your keyboard \r to add Sharjah Commerce and Tourism Development Authority site to your Favorites."); 
} 
else if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}
//-->