///////////////////////////////////////////////////////////////////////
//                                                                   //
//     JavaScripts Global Function used on every Page			     //
//                                                                   //
///////////////////////////////////////////////////////////////////////

// Global Constants
					
function StatusMsg(msgStr) {
// To show the msgStr in the Status Bar
		
		status = msgStr;
		document.returnValue = true;
		//status = "Applying The Web To Your Business"
}

function SetFocus(frmName,fldName) {		
// To set the Cursor on the specified field Name
		document.forms(frmName).item(fldName).focus();
}


function PopUp(sURl, sName, sFeatures) {
// To open a new window

		var newBrowser;

		newBrowser = window.open(sURl, sName, sFeatures);
		newBrowser.focus();		
}

function showRandomImage(sTitle) {
	// To show the top random image
	var nMax = 8;
	var nChoice;
	
	if (Math.random) {
		nChoice = Math.round(Math.random() * (nMax - 1));
	}
	else {
		var now = new Date();
		nChoice = (now.getTime()/ 1000) % nMax; 
	}
	
	if (nChoice == 0) { 
		nChoice = 1;
	}
	document.write('<img  Alt = "' + sTitle + '" Src = "gifs/top0' + nChoice + '.jpg" Border = "0">');
}