function popup(URL,id,w,h) {
//var winpops=window.open(popurl,id,"width=600px,height=500px,left=212,top=84,status,scrollbars")
day = new Date();
//id = day.getTime();
//id="test";
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+w+",height="+h+",top = 84');");
}

function popup_close()
{
	window.close();
}

function marquee_action()
{
	var title_name;
	title_name=document.getElementById("action_img").title;
	if(title_name=="pause")
	{
		document.getElementById("marquee").stop();
		document.getElementById("action_img").title="play";
		document.getElementById("action_img").src="images/play_button.jpg"
	}
	else
	{
		document.getElementById("marquee").start();
		document.getElementById("action_img").title="pause";
		document.getElementById("action_img").src="images/pause_button.jpg"
	}
	
}

function checkKeyCode(evt)
{
//alert("HAI");
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
//alert(evt.keyCode);

if(event.keyCode==116)
{
evt.keyCode=0;
alert("Sorry! This key[F5] function Was Disabled!!");
return false
}
if(event.keyCode==122)
{
evt.keyCode=0;
alert("Sorry! This key[F11] function Was Disabled!!");
return false
}
if(event.keyCode==8)
{
evt.keyCode=0;
alert("Sorry! This key[back] function Was Disabled!!");
return false
}
if(event.keyCode==17)
{
evt.keyCode=0;
alert("Sorry! This key[ctrl] function Was Disabled!!");
return false
}
if(window.event.ctrlKey)
{
evt.keyCode=0;
alert("Sorry! This [ctrl+]key function are Disabled!!");
}


//if (event.ctrlKey &&(keyCode == 78 || keyCode == 82)) 
 //        {
                // When ctrl is pressed with R or N<br>
     //           evt.keyCode=0;
   //       }
	//alert(evt.keyCode);
	shortcut.remove("Ctrl+N");
	return false;

}
function rightclick()
{
alert("Sorry! Right Click Option Was Disabled!!");
return false;

}


function confirm_fun()
{
if(confirm('Are you sure? Once you confirm it, you cannot undo this action')==true)
{	return true;
}
else
{	return false;
}
}
