function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
{
	alert("aaaaaaaaaaaa"&fileUrl);
	switch ( errorNumber )
	{
		case 0 :	// No errors
			document.getElementById("txtUrl").value = fileUrl ;
			alert( 'File uploaded with no errors' ) ;
			break ;
		case 1 :	// Custom error
			alert( customMsg ) ;
			break ;
		case 10 :	// Custom warning
			document.getElementById("txtUrl").value = fileUrl ;
			alert( customMsg ) ;
			break ;
		case 201 :
			document.getElementById("txtUrl").value = fileUrl ;
			alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ;
			break ;
		case 202 :
			alert( 'Invalid file' ) ;
			break ;
		case 203 :
			alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ;
			break ;
		default :
			alert( 'Error on file upload. Error number: ' + errorNumber ) ;
			break ;
	}
}

function frmemailvalidator(theForm)
{
  // E-mail Validator Code
  if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theForm.txtVisitor_Name.value))) 
  {
		//  do nothing
  }
  else
  {
	alert("Invalid E-mail Address! Please re-enter.")
	theForm.txtEmail.focus();
	return (false);
  }
   return (true);
}


function fnOpenWindow(theURL)
{
 var winName = "Character";
 var features = "toolbar=0,left=50,top=50,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=400"
 window.open(theURL,winName,features);
}
function fnOpenWindow1(theURL)
{
 var winName = "Character";
 var features = "toolbar=0,left=10,top=10,location=0,status=0,menubar=1,scrollbars=1,resizable=0,width=450,height=450"
 window.open(theURL,winName,features);
}

function fnOpenWindow2(theURL)
{
 var winName = "Character";
 var features = "toolbar=0,left=10,top=10,location=0,status=0,menubar=1,scrollbars=1,resizable=0,width=800,height=550"
 window.open(theURL,winName,features);
}

function fnOpenWindowForPDF(theURL)
{
 var winName = "Character";
 window.open(theURL,winName);
}
function fnclose()
{
	window.close()
}




