function fnViewScrutiny()
		{
			var temp = 3;
			mywindow = window.open("../../Master/Forms/frmScrutiny.aspx?"+ temp,"Layout","resizable=Yes,scrollbars=yes,width=900,height=600,top=70,left=20");  
			mywindow.focus();
			return true;			
		}
function fnViewDR()
		{
			var temp = document.Form1.txtCaseId.value;
			if(temp != "")
			{
//				alert(temp);
				mywindow = window.open("../../Master/Forms/frmApplicationDetails.aspx?"+ temp,"Layout","resizable=Yes,scrollbars=yes,width=900,height=600,top=70,left=20");  
				mywindow.focus();
				return false;
			}
			else
			{
				alert("Please Select a Case");
				return false;
			}
		}
		
function fnViewDRF()
		{
			var temp = 3;
			mywindow = window.open("../../Master/Forms/frmApplicationDetails.aspx?"+ temp,"Layout","resizable=Yes,scrollbars=yes,width=900,height=600,top=70,left=20");  
			mywindow.focus();
			return true;	
					
		}
//////////////////////////////////////////////

//<iframe> script by Dynamicdrive.com

//Specify speed of scroll. Larger=faster (ie: 5)

var scrollspeed=cache=1

function initialize(){
marqueeheight=50;//document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=75
thelength=dataobj.offsetHeight
//setInterval("scrolltest()",50)
scrolltest()
}
 function init()
 {
 dataobj.style.top=75
thelength=dataobj.offsetHeight
}
function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
{
	//dataobj.style.top=10
	init();
	}
setTimeout("scrolltest()",50)
}
///////////////////////////////////////////////

function checkdate(obj)
		{

		var err=0
		a=obj.value
		if (a.length != 10) err=1
		b = a.substring(0, 2)// day
		c = a.substring(2, 3)// '/'
		d = a.substring(3, 5)// month
		e = a.substring(5, 6)// '/'
		f = a.substring(6, 10)// year

		//basic error checking
		if (b<1 || b>31) err = 1
		if (c != '/') err = 1
		if (d<1 || d>12) err = 1
		if (e != '/') err = 1
		if (f<0 || f>9999) err = 1
		
		//advanced error checking

		// months with 30 days
		if (d==4 || d==6 || d==9 || d==11){
			if (b==31) err=1
		}

		// february, leap year
		if (d==2){
			// feb
			var g=parseInt(f/4)
			if (isNaN(g)) {
				err=1
			}

			if (b>29) err=1
			if (b==29 && ((f/4)!=parseInt(f/4))) err=1
		}

		if (err==1){
			alert('Enter date in proper format (DD/MM/YYYY)!');
			obj.value="";
			
		}
}

function checkemail(txtObj)
{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(txtObj.value))
	{
		return (true)
	}
	alert("Invalid E-mail Address! Please re-enter.")
		return (false)
}


