// JavaScript Document
function findDOM(objectId) {
	if (document.getElementById) {
	return (document.getElementById(objectId));}
	if (document.all) {
	return (document.all[objectId]);}
	}
	function zoom(type,imgx,sz) {
	imgd = findDOM(imgx);
	if (type=="+" && imgd.width < 2400) {
	imgd.width = (imgd.width *1.1);
	imgd.height = (imgd.height*1.1);}
	
	if (type=="0") {
	imgd.width = 1071;imgd.height = 1659;}
	
	if (type=="-" && imgd.width > 900) {
	imgd.width = (imgd.width /1.1);
	imgd.height = (imgd.height/1.1);}
	}


function getHTTPObject()
	{
	if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	else if (window.XMLHttpRequest) return new XMLHttpRequest();
	else{
		alert("Your browser does not support AJAX.");
		return null;
		}
	}

// Change the value of the outputText field
function setOutput(){

	if(httpObject.readyState == 4){
			var combo = document.getElementById('MID');
			combo.options.length = 0;
			var response = httpObject.responseText;
			var items = response.split(";");
			var count = items.length;
			count =count-1;
			for (var i=0;i<count;i++){
			var options = items[i].split("-");
			combo.options[i] =	new Option(options[0],options[1]);
			}
	
		}
	}

function setOutputdate(){

	if(httpObject.readyState == 4){
			var combo = document.getElementById('DID');
			combo.options.length = 0;
			var response = httpObject.responseText;
			var items = response.split(";");
			var count = items.length;
			count =count-1;
			for (var i=0;i<count;i++){
			var options = items[i].split("-");
			combo.options[i] =	new Option(options[0],options[1]);
			}
	
		}
	}
	
function ValCheck(){
		if(document.getElementById('YID').value=='')
		{
		alert("Please Select year");
		return false;
		}
		else if(document.getElementById('MID').value=='')
		{
		alert("Please Select Month");
		return false;
		}
		else if(document.getElementById('DID').value=='')
		{
		alert("Please Select date");
		return false;
		}
		return true;
	}
