
var HotelName;
function writer()
{

HotelName=HotelNameForPlan;
}

function writein()
{
document.RequestForProposal.hotelName.value=HotelName;
}

function writein2()
{
document.searchForm.hotelName.value=HotelName;
document.searchForm.hotelCode.value=HotelCode;
document.searchForm.hotelCountry.value=Country;
document.searchForm.hotelCity.value=City;

}

function step(e)
{
 	document.RequestForProposal.step.value="";
	document.RequestForProposal.step.value=e;
}




<!--
	//Function to carry hidden fields
	function TA_ChngLocation() {
	  //v1.0 //javascript:Submit_Page("page.asp");
	  var a=TA_ChngLocation.arguments; window.document.forms[0].action=a[0];document.forms[0].submit();
	  //return true;
	}
	//Function to open new window 
	function TAAdmin_openWindow(theURL,winName,features) { 
		window.open(theURL,winName,features);
	}
	
	//Function to trim the leading and trailing spaces in string
	function Trim(myString) {
		return myString.replace(/^\s*(\b.*\b|)\s*$/, "$1");
	}

	//Function to check the valid characters
	function IsValidChars(Char_To_Be_Checked,Valid_Char) {
		var checkStr;
		var checkOK1;
		var allValid; 

		checkStr=Char_To_Be_Checked;
		checkOK1=Valid_Char;
		var allValid=true;

		for(m=0;m<checkStr.length;m++) {
			ch=checkStr.charAt(m);
			for(n=0;n<checkOK1.length;n++) {
				if(ch==checkOK1.charAt(n))
				break;
			}
			if(n==checkOK1.length) {
				allValid=false;
				break;
			}
		}
		return allValid;
	}	
	//Function to validate Email
	function IsValidEmail(email)  {  
	//var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
		var exclude=/[^@\-\.\w]|^[_@\.\]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
		var checkend=/\.[a-zA-Z]{2,3}$/;

		if((email.search(exclude) != -1) || (email.search(checkend) == -1)) {
			return false;
		}
		atPos = email.indexOf("@",0);
		pPos1 = email.indexOf(".",0);
		periodPos = email.indexOf(".",atPos);
		pos1 = pPos1;
		pos2 = 0;
		while (pos2 > -1) {
			pos2 = email.indexOf(".",pos1+1);
			if (pos2 == pos1+1) {
				return false;
			} else {
				pos1 = pos2;
			}
		}
		if (atPos == -1) {
			return false;
		}
		if (atPos == 0) {
			return false;
		}
		if (pPos1 == 0) {
			return false;
		}
		if(email.indexOf("@",atPos+1) > -1) {
			return false;
		}
		if (periodPos == -1) {
			return false;
		}
		if (atPos+1 == periodPos) {
			return false;
		}
		if (periodPos+3 > email.length) {
			return false;
		}
		return true;
	}

	//Function to check the invalid characters
	function IsInValidChars(Char_To_Be_Checked,InValid_Char) {
		var checkStr;
		var checkOK1;
		var allValid; 

		checkStr=Char_To_Be_Checked;
		checkOK1=InValid_Char;
		var allValid=true;

		for(m=0;m<checkStr.length;m++) {
			ch=checkStr.charAt(m);
			for(n=0;n<checkOK1.length;n++) {
				if(ch==checkOK1.charAt(n)) {
					allValid=false;
					break;
				}
			}
		}
		return allValid;
	}	
//-->



