/*****************************************************************************/
function isEmail(str)
{
	if(/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/.test(str))return true;else return false;
}
function isNumber(str)
{
	if(/^\d+$/.test(str))return true;else return false;
}
function isString(str)
{
	if(/^ *[a-zA-Z ]+ *$/.test(str))return true;else return false;
}
function trim(str)
{	
	return str.replace(/^\s+|\s+$/g,"");
}
/*****************************************************************************/
function show1()
{
	document.getElementById('div2').style.display = "none";
	document.getElementById('div1').style.display = "block";
}
function show2()
{
	document.getElementById('div1').style.display = "none";
	document.getElementById('div2').style.display = "block";
}
/*****************************************************************************/
function del()
{
	if(confirm("Are you Sure to Delete it?"))return true;
	else return false;
}
/*****************************************************************************/
function leave_comment()
{
	document.getElementById('leave_comment').style.display = 'block';
	document.getElementById('leave_comment').style.top = '20px';
	document.getElementById('leave_comment').style.left = ((screen.width/2)-(500/2))+'px';
	document.getElementById('leave_comment').style.width = '500px';
	document.getElementById('leave_comment').style.height = '400px';
	document.getElementById('leave_comment').style.position = 'fixed';
	document.getElementById('leave_comment').style.background = '#F9F9F9';
}
