// JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function checkEmail(email) 
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))
	{
		return (true);
	}
	return false;
}

function textLimitCheck(thisArea, maxLength, msg)
{
	if (thisArea.value.length > maxLength)
	{
		alert(maxLength + ' characters limit. \rExcessive data will be truncated.');
		thisArea.value = thisArea.value.substring(0, maxLength);
		thisArea.focus();
	}
	document.getElementById(msg).innerText = thisArea.value.length;
}
var pop = '';
function openwin(nm,width,height) {
	var name = nm;
	if (pop && !pop.closed) {
		pop.close();
	}

	pop = eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes,left=2,right=2')");
	if (!pop.opener) popUpWin.opener = self;
}

function closewin()
{
	window.close();
}


function f1(request, val)
{
	if(val==1)
		document.getElementById('request').style.display = 'block' 
	else
		document.getElementById('request').style.display = 'none' 
}