<!-- Hides from old browsers

//Written by Buvanendran Rajaratnam
//University of Windsor Ontario, Canada
//rajara1@uwindsor.ca
//to check browser and let to use the java script
//ie4, ie3 intenter explorer version 4 and 3, and nn4 means netscape version 4
	var app = navigator.appName.toLowerCase();
	var ver = navigator.appVersion.toLowerCase();
	var ver = parseInt(ver.substring(0,1));
	var ie4 = (app.indexOf("microsoft") != -1 && ver >= 4);
	var ie6 = (app.indexOf("microsoft") != -1 && ver >= 6);
	var nn3 = (app.indexOf("netscape") != -1 && ver == 3);
	var nn4 = (app.indexOf("netscape") != -1 && ver >= 4);
	var nn6 = (app.indexOf("netscape") != -1 && ver >= 6);
	var scriptAllow = (ie4 || nn3 || nn4);
	var script6Allow = (ie6 || nn6)



//get the Locat date and time
function today() {
	var tdy = new Date();
	var days = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
	var months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
	var year = tdy.getYear();
	var min;
	if (tdy.getMinutes()<9) 
	min="0"+tdy.getMinutes(); 
	else min=tdy.getMinutes();
	
	if (year > 99 && year < 200) 
		{
			year += 1900;
			} else { 
			if (year < 100) 
			{
				year = 2000 + year;
			}		
		}

	return (days[tdy.getDay()]+" "+months[tdy.getMonth()]+" "+tdy.getDate()+", "+year +" "+tdy.getHours()+":"+min +":"+tdy.getSeconds());
}



function customWindow(pic)
{
//i didn't use quotation here b/c it is not supported by netscape if i uses like width="250"
window.open(pic,'referme','width=375,height=390,toolbar=no,location=no,resizable=yes,status=yes,menubar=no scrollbars=yes,copyhistory=no');
}



function popWindow(pic)
{
 var imgurl = "http://www.kannan.faithweb.com/" + pic.substring(pic.indexOf("quote"),pic.length);

//i didn't use quotation here b/c it is not supported by netscape if i uses like width="250"
window.open(imgurl,'referme','width=375,height=390,toolbar=no,location=no,resizable=yes,status=yes,menubar=no scrollbars=yes,copyhistory=no');
}






var MainColor1 = "#AAAAAA";
var MainColor2 = "#444444";
var BackColor = "#FFFFFF";
var lineup = "center";
var xoffset = -1;
var yoffset = -2;

function Title(string,size)
{
 	document.write(GetScript(string,size));
}

function GetScript(string,size)
{
	var ScriptInfo = "<div align='"+lineup+"'><font   id = 'titleshadow' color='"+MainColor2+"' style='position: relative; left: 1px; top: 1px; font-size: "+size+"px; font-family:  Tahoma;  font-weight : bold;'>"+
	string+
	"<font id = 'titlecolor' color='"+MainColor1+"' style='position: absolute; left: "+xoffset+"px; top: "+yoffset+"px; '>"+
	string+
	"</font></font></div>";

        return ScriptInfo;
}

function MakeText()
{
	var MyUrl = "http://www.google.com/translate_c?hl="+FromType.value+"&amp;ie=UTF-8&amp;oe=UTF-8&amp;langpair="+FromType.value+"%7C"+ToType.value+"&amp;u="+url.value;
 	var htmlText =
 	"<html>\r\n<head>\r\n<!-- Created By PageTranslator --- Find out more at http://www.tamil-media.com -->\r\n<title>"+title.value+"</title>\r\n<META CONTENT=\"blendTrans(Duration=1)\" HTTP-EQUIV=\"Page-Enter\">\r\n<META CONTENT=\"blendTrans(Duration=1)\" HTTP-EQUIV=\"Page-Exit\">\r\n<META http-equiv=\"refresh\" content=\"2;URL="+MyUrl+"\">\r\n</head>\r\n"+
	"<body bgcolor=\"#ffffff\"><p align=center><font size=\"+1\" face=\"arial,sans-serif\"><a href=\""+MyUrl+"\">"+title.value+"</a></font></p>\r\n</body>\r\n</html>\r\n";
 	return htmlText;

 
}


function TestIt()
{
	if (url.value == "http://")
	{
		alert("You Must Enter A Valid URL!");
		return;
	}
     	var ScreenLeft = (window.screen.width-640)/2;
    	var ScreenTop = (window.screen.height-400)/2;
	var out = window.open("","","toolbar=No,menubar=No,location=No,scrollbars=Yes,resizable=Yes,status=No,width=640,height=405,left="+ScreenLeft+",top="+ScreenTop+"");
	out.document.write(MakeText());
	out.document.close();
}


function viewIt()
{
	var fileUrl = "tamileditor.php";
     	var ScreenLeft = (window.screen.width-640)/2;
    	var ScreenTop = (window.screen.height-400)/2;

window.open(fileUrl,'TextEditor','toolbar=No,menubar=No,location=No,scrollbars=Yes,resizable=Yes,status=No,width=640,height=405,left="+ScreenLeft+",top="+ScreenTop+"');
}














closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup() {
url = "http://www.masterofmath.com/games/";
width = 267;  // width of window in pixels
height = 103; // height of window in pixels
delay = 2;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}






//-->