function js_Mail (a,b) {
	document.location = 'mailto:'+a+'@'+b;
}


function js_NewWin (url,w,h) {
	var ext4 = url.substr(-4,4);
	var ext5 = url.substr(-5,5);
	ext4 = ext4.toLowerCase();
	ext5 = ext5.toLowerCase();
	if ((ext4 == '.htm') || (ext5 == '.html') || (ext4 == '.php') || (ext4 == '.pdf')) {
		var win = window.open(url,'win','resizable=yes,width='+w+',height='+h+',location=yes,status=no,scrollbars=yes,menubar=no');
	} else if ((ext4 == '.jpg') || (ext5 == '.jpeg') || (ext4 == '.gif') || (ext4 == '.psd')) {
		var win = window.open('','win','resizable=yes,width=100,height=100,status=no,scrollbars=no,menubar=no');
		win.document.write('<html><head>'+"\n"+' <title>image</title>'+"\n");
		win.document.write('<script type="text/javascript">'+"\n");
		win.document.write('var NS = (navigator.appName=="Netscape")?true:false;'+"\n");
		win.document.write('function FitImg() {'+"\n");
		win.document.write('  iWidth = (NS)?window.innerWidth:document.body.clientWidth;'+"\n");
		win.document.write('  iHeight = (NS)?window.innerHeight:document.body.clientHeight;'+"\n");
		win.document.write('  iWidth = document.images[0].width - iWidth;'+"\n");
		win.document.write('  iHeight = document.images[0].height - iHeight;'+"\n");
		win.document.write('  window.resizeBy(iWidth, iHeight);'+"\n");
		win.document.write('}'+"\n");
		win.document.write('</script>'+"\n");
		win.document.write('</head>'+"\n");
		win.document.write('<body onload="setTimeout(\'FitImg();\',500);" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"><img src="'+url+'" /></body>'+"\n");
		win.document.write ('</html>'+"\n");
		win.document.close();
	} else document.location = url;
}


function js_hide (id) {
	document.getElementById(id).style.visibility="hidden";
}