function resetElementValue(theForm,countryDefaultIndex)
{
	/*
	* text, textarea, button, checkbox, select-one
	*/
	for(i=0; i<theForm.elements.length; i++)
	{
		if(theForm.elements[i].type == "text" || theForm.elements[i].type == "textarea" || theForm.elements[i].type == "password"){
			theForm.elements[i].value = '';
		}
		else if(theForm.elements[i].type == "checkbox"){
			theForm.elements[i].checked = false;
		}
		else if(theForm.elements[i].type == "select-one"){
			
			var inday,inmonth,outday,outmonth;
			var today=new Date();
			inday = today.getDate()-1;
			inmonth = today.getMonth();
			//alert(today+'-'+today.getFullYear());
			var tmpYear=today.getFullYear();
			var tmpMonth=today.getMonth()+1;
			var tmpDay=today.getDate()+7;

		    var sevenDay=new Date(tmpYear+"/"+tmpMonth+"/"+tmpDay);
			//alert(sevenDay);
			outday = sevenDay.getDate()-1;
			outmonth = sevenDay.getMonth();
			//alert(theForm.elements[i].name+'-'+outday+'-'+outmonth);

			if(theForm.elements[i].name=="INDATE_DAY") {
				theForm.elements[i].selectedIndex = inday;
			}
			else if(theForm.elements[i].name=="INDATE_MONTH" ) {
				  theForm.elements[i].selectedIndex = inmonth;
			}
			else if(theForm.elements[i].name=="INDATE_YEAR") {
				  theForm.elements[i].selectedIndex = '';
			}
			else if(theForm.elements[i].name=="OUTDATE_DAY") {
				 theForm.elements[i].selectedIndex = outday;
			}
			else if(theForm.elements[i].name=="OUTDATE_MONTH") {
				  theForm.elements[i].selectedIndex = outmonth;
			}
			else if(theForm.elements[i].name=="OUTDATE_YEAR") {
				  theForm.elements[i].selectedIndex = '';
			}
			else if(theForm.elements[i].name.indexOf("country")!=-1) { 
				  theForm.elements[i].selectedIndex = countryDefaultIndex;
			}
			else 
				theForm.elements[i].selectedIndex = '';
		}
	}
}