// JScript source code
	//------------------------------------------	
function Over_Text(Text,color){
		Text.style.cursor="hand";
		Text.style.textDecoration = "underline";
		Text.style.color = color;
}
	
function Out_Text(Text,color){
	Text.style.color = color;
	Text.style.textDecoration = "none";
}	
//------------------------------------------	
function Over_Text1(Text,color){
		Text.style.cursor="hand";
		Text.style.color = color;
}
	
function Out_Text1(Text,color){
	Text.style.color = color;
}	
//------------------------------------------
function OpenWindow(windowURL){
	try{
		var windowConfig = 'toolbar=yes, ';
    	//Menu
		windowConfig += 'menubar=yes, ';
    	//Scrollbars
	    windowConfig += 'scrollbars=yes, ';
    	//Resizable
		windowConfig += 'resizable=yes, ';
    	//Address Bar
	    windowConfig += 'location=yes, ';
		//Favorites
		windowConfig += 'directories=yes, ';
		//Statusbar
		windowConfig += 'status=yes, ';
		//windowConfig += 'left=0, ';
		//windowConfig += 'top=0, ';
		windowConfig += 'height=400px' + window.screen.height + ', ';
		windowConfig += 'width=600px' + 
		window.screen.width+ ', ';
		window.open(windowURL, "_blank", config = windowConfig);
	}catch(e){}
}
//---------------------------------------------------------------
function openPicture(picURL,picTitle)
{	
var picName = new Image();
	picName.src = "ImageAttach/"+picURL;
	picURL=picName.src;
	 newWindow=window.open(picURL, "newWin", "toolbar=no,status=no");
     newWindow.document.write('<html><head><title>'+picTitle+'<\/title><\/head><body topmargin=0 leftmargin=0><img id="picImage" alt="Click here to close this window !" style="cursor:hand;" src="'+picURL+'" onclick="window.close();"><\/body><\/html>');
     var picImage = newWindow.document.getElementById("picImage");
     if (picImage){
		var w = parseInt(picImage.width);
		var h = parseInt(picImage.height);
		var cW = parseInt(window.screen.availWidth);
		var cH = parseInt(window.screen.availHeight);
		if (w > cW){
 w = cW;
picImage.width = w;
}
		if (h > cH){
 h = cH;
picImage.height = h;
}
		var l = (cW - w)/2;
		var t = (cH - h)/2;
		newWindow.resizeTo(w+10, h+30);
		newWindow.moveTo(l, t);
	}
newWindow.focus();
}				
//------------------------------------------------------------
function printNews(ID,lang)
{
window.showModalDialog("printNews.asp?ID=" + ID + "&language=" + lang,"","")
}		