﻿/// <reference path="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" />

function showmenu(obj) {
    document.getElementById(obj).style.display = "block";
}
function hidemenu(obj) {
    document.getElementById(obj).style.display = "none";
}
/* ------- Slide show code start here -----------*/
$(document).ready(function() {		
	
	//Execute the slideShow
	slideShow();

});
function slideShow() {

	//Set the opacity of all images to 0
	$('#Left_gallery a').css({opacity: 0.0});
	
	//Get the first image and display it (set it to full opacity)
	$('#Left_gallery a:first').css({opacity: 1.0});

	//Set the caption background to transparent
	//$('#Left_gallery .caption').css({ opacity: 0 });
		
	
	//Call the Left_gallery function to run the slideshow, 6000 = change to next image after 6 seconds
	setInterval('Left_gallery()', 6000);
	//setTimeout('loadcaption1()', 3000);
}
/*function loadcaption1() {
    //Set the caption background to semi-transparent
    $('#Left_gallery .caption').css({ opacity: 0.7 });

    //Resize the width of the caption according to the image width
    $('#Left_gallery .caption').css({ width: $('#Left_gallery a').find('img').css('width') });

    //Get the caption of the first image from REL attribute and display it
    $('#Left_gallery .content').html($('#Left_gallery a:first').find('img').attr('title')).animate({ opacity: 0.7 }, 100).animate({ height: '80px' }, 500);
}*/
function loadcaption()
{
    //Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
    $('#Left_gallery .caption').animate({ opacity: 0.7 }, 100).animate({ height: '80px' }, 500);

    
}
function Left_gallery() {
	
	//if no IMGs have the show class, grab the first image
	var current = ($('#Left_gallery a.show')?  $('#Left_gallery a.show') : $('#Left_gallery a:first'));

	//Get next image, if it reached the end of the slideshow, rotate it back to the first image
	var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#Left_gallery a:first') :current.next()) : $('#Left_gallery a:first'));	
	
	//Get next image caption
	var caption = next.find('img').attr('title');	
	
	//Set the fade in effect for the next image, show class has higher z-index
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);

	//Hide the current image
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');

	setTimeout('loadcaption()', 3000);
	//Set the opacity to 0 and height to 1px
	$('#Left_gallery .caption').animate({ opacity: 0.0 }, { queue: false, duration: 0 }).animate({ height: '1px' }, { queue: true, duration: 300 });
	//Display the content
	$('#Left_gallery .content').html(caption);	
	
}
/* ---------- Slide show code End here -----------*/
/* ---------- PopUp code start here -------------*/
function ShowPopUp(url,isFrame,title) {
    var urlPath = '';
    var $modal;
    if (isFrame) {
        $modal = $('<div id="modal"><iframe frameborder="0" src="' + urlPath + '" width="700" style="width:680px; height:585px;"></iframe></div>');
        $modal.dialog({ width: 700, modal: true, title: title  });
    }
    else {
        var img = document.createElement('img');
        img.src = url;        
        $modal = $('<div id="modal"></div>').append(img);
        //alert(img.width);
        $modal.dialog({ modal: true, width: 665,minHeight: 520, title: title });
    }
}
$(function () {
	 $('a[rel="EmailPopUp"]').click(function () {
        var $modal = $('<div id="modal" style="padding-left:0px!important; padding-right:0px!important;"><iframe frameborder="0" src="' + this.href + '" style="width:530px; height:500px;"></iframe></div>');
        //$modal.load(this.href);
        $modal.dialog({ title: 'Email this Page to a Friend',
            width: "auto",
            height: "auto",
            modal: true
        });
        
        return false;
    });
});
$(function () {
	 $('a[rel="NewsanddealPopUp"]').click(function () {
        var $modal = $('<div id="modal" style="padding-left:0px!important; padding-right:0px!important;"><iframe frameborder="0" src="' + this.href + '" style="width:750px; height:330px;"></iframe></div>');
        //$modal.load(this.href);
        $modal.dialog({ title: 'News and Deals',
            width: "auto",
            height: "auto",
            modal: true
        });
        
        return false;
    });
});
/* --------- PopUp code End here ---------------*/
/* --------- Left Menu Link Highlight ---------- */
 $(document).ready(function(){
							
							var i;
							var current;
							for(i=1;i<=15;i++)
							{
								if(typeof(footernavi)!="undefined")
								{
								if(footernavi ==i)
								{
								current = "footer-link"+ i +"-current";
								  $(".footer-link" + i).removeAttr("href");
                    			  $(".footer-link" + i).attr("class",current);
								}
								}
                                }
                               var j;
							var current;
							for(j=1;j<=15;j++)
							{
								if(typeof(hotelnavi)!="undefined")
								{
								if(hotelnavi ==j)
								{
								current = "hotel_menu_link"+ j +"-current";
								  $(".hotel_menu_link" + j).removeAttr("href");
                    			  $(".hotel_menu_link" + j).attr("class",current);
								}
								}
                                }
								 var l;
							var current;
							for(l=1;l<=15;l++)
							{
								if(typeof(localinfonavi)!="undefined")
								{
								if(localinfonavi ==l)
								{
								current = "local_info_link"+ l +"-current";
								  $(".local_info_link" + l).removeAttr("href");
                    			  $(".local_info_link" + l).attr("class",current);
								}
								}
                                }
                                });
 /* ------- Left Menu Link Highlight --------- */
/* --------- Call Survey ------------*/
  function CallSurvey()
		{

		window.open('https://www.surveymonkey.com/s.aspx?sm=GtigxNOtVXtzjTdX5ecTLg_3d_3d', 'win', 'height=600,width=600,scrollbars=yes,resizable=yes,status=yes');

		}
/* --------- Call Survey ------------*/
  
  //----------- ScrollPane--------------------
$(function () {
    var xyz = document.getElementById('pane3');
    if (xyz != null) {
        $('#pane3').jScrollPane(
                {
                    hijackInternalLinks: true
                }
                );
    }
});
//----------- ScrollPane--------------------

/* -------- Jquery MouseWheel JS Start -------------- */
(function($) {

$.event.special.mousewheel = {
	setup: function() {
		var handler = $.event.special.mousewheel.handler;
		
		// Fix pageX, pageY, clientX and clientY for mozilla
		if ( $.browser.mozilla )
			$(this).bind('mousemove.mousewheel', function(event) {
				$.data(this, 'mwcursorposdata', {
					pageX: event.pageX,
					pageY: event.pageY,
					clientX: event.clientX,
					clientY: event.clientY
				});
			});
	
		if ( this.addEventListener )
			this.addEventListener( ($.browser.mozilla ? 'DOMMouseScroll' : 'mousewheel'), handler, false);
		else
			this.onmousewheel = handler;
	},
	
	teardown: function() {
		var handler = $.event.special.mousewheel.handler;
		
		$(this).unbind('mousemove.mousewheel');
		
		if ( this.removeEventListener )
			this.removeEventListener( ($.browser.mozilla ? 'DOMMouseScroll' : 'mousewheel'), handler, false);
		else
			this.onmousewheel = function(){};
		
		$.removeData(this, 'mwcursorposdata');
	},
	
	handler: function(event) {
		var args = Array.prototype.slice.call( arguments, 1 );
		
		event = $.event.fix(event || window.event);
		// Get correct pageX, pageY, clientX and clientY for mozilla
		$.extend( event, $.data(this, 'mwcursorposdata') || {} );
		var delta = 0, returnValue = true;
		
		if ( event.wheelDelta ) delta = event.wheelDelta/120;
		if ( event.detail     ) delta = -event.detail/3;
//		if ( $.browser.opera  ) delta = -event.wheelDelta;
		
		event.data  = event.data || {};
		event.type  = "mousewheel";
		
		// Add delta to the front of the arguments
		args.unshift(delta);
		// Add event to the front of the arguments
		args.unshift(event);

		return $.event.handle.apply(this, args);
	}
};

$.fn.extend({
	mousewheel: function(fn) {
		return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
	},
	
	unmousewheel: function(fn) {
		return this.unbind("mousewheel", fn);
	}
});

})(jQuery);
/* -------- Jquery MouseWheel JS End -------------- */
        function getAllQueryString() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }

        function getQueryString(name) {
            return getAllQueryString()[name];
        }
/* --  gfdgfdg ------- */

/* ----------- navihighlight ------------- */

function navihighlight() {
    if (typeof parentid != 'undefined') {
        var plink = $('#' + parentid);
        plink.removeClass('menu_topline_normal');
        plink.addClass('menu_topline_current');
        plink.parent().addClass('menu_arrow_over');
    }
    if (typeof parentid2 != 'undefined') {
        var plink2 = $('#' + parentid2);
        plink2.removeClass('promo_topline_normal');
        plink2.addClass('promo_topline_current');
        plink2.parent().addClass('menu_arrow_over');
       
    }
    if (typeof parentid3 != 'undefined') {
        var plink3 = $('#' + parentid3);
        plink3.removeClass('content_wrap');
        plink3.addClass('content_wrap_hotel');
    }
    if (typeof pageid != "undefined") {
        var clink = $('#' + pageid);
        clink.removeAttr('href');
        var img = $('.bg_banner');
        if (typeof img != "undefined") {            
            img.css('background-image', 'url(images/' + pageid + '_m.jpg)');
        }
    }

}

/* ----------- navihighlight ------------- */
/*-------------event-planning-start-------------*/

function ErrDD(divid) {
    document.getElementById(divid).style.display = "block";
    $(function () {
        var xyz = document.getElementById('pane3');
        if (xyz != null) {
            $('#pane3').jScrollPane(
                {
                    hijackInternalLinks: true
                }
                );
        }
    });
    return false;
}
function noErrBox(divid) {
    document.getElementById(divid).style.display = "none";
}

function showMore(mainid1, mainid2, subid) {
    var docmain1 = document.getElementById(mainid1);
    var docmain2 = document.getElementById(mainid2);
    var docsub = document.getElementById(subid);

    if (docmain1.style.display == '')
        docmain1.style.display = 'inline';

    if (docmain1.style.display == 'inline') {
        docmain1.style.display = 'none';
        docmain2.style.display = 'inline';
        docsub.style.display = 'inline';
    }
    else if (docmain1.style.display == 'none') {
        docmain1.style.display = 'inline';
        docmain2.style.display = 'none';
        docsub.style.display = 'none';
    }
    $(function () {
        var xyz = document.getElementById('pane3');
        if (xyz != null) {
            $('#pane3').jScrollPane(
                {
                    hijackInternalLinks: true
                }
                );
        }
    });
}
/*-------------event-planning-end-------------*/
/*-------------email-us-start-------------*/
function emailErrBox(divid, txtid, lblid) {
    document.getElementById(divid).style.display = "block";
    document.getElementById(txtid).className = "ctrl_text_err";
    document.getElementById(lblid).className = "lable_text_err";
    return false;
}

function emailErrDD(divid, lblid) {
    document.getElementById(divid).style.display = "block";
    document.getElementById(lblid).className = "lable_text_err";
    return false;
}
function noemailErrDD(divid, lblid) {
    document.getElementById(divid).style.display = "none";
    document.getElementById(lblid).className = "lable_text";
}

function noemailErrBox(divid, txtid, lblid) {
    document.getElementById(divid).style.display = "none";
    document.getElementById(txtid).className = "ctrl_text";
    document.getElementById(lblid).className = "lable_text";
}
function limitText(limitField, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    }
}
function gest() {
    if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "2") {
        document.getElementById(DivEvenhosting).style.display = 'block';
        document.getElementById(EDivDinings).style.display = 'none';
        document.getElementById(DivReservation).style.display = 'none';
        document.getElementById(divNormal).style.display = 'block';
    }
    else if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "5") {
        document.getElementById(EDivDinings).style.display = 'block';
        document.getElementById(DivEvenhosting).style.display = 'none';
        document.getElementById(DivReservation).style.display = 'none';
        document.getElementById(divNormal).style.display = 'block';
    }
    else if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "6") {
        document.getElementById(EDivDinings).style.display = 'none';
        document.getElementById(DivEvenhosting).style.display = 'none';
        document.getElementById(DivReservation).style.display = 'block';
        document.getElementById(divNormal).style.display = 'none';
    }
    else {
        document.getElementById(DivEvenhosting).style.display = 'none';
        document.getElementById(EDivDinings).style.display = 'none';
        document.getElementById(DivReservation).style.display = 'none';
        document.getElementById(divNormal).style.display = 'block';
    }
}

function validate() {
    var isnoError = true;
    if (document.getElementById(TxtEmailAddress).value == "") {
        isnoError = emailErrBox('TxtEmailAddressErr', TxtEmailAddress, 'TxtEmailAddresslbl');
    }
    else {
        if (document.getElementById(TxtEmailAddress).value != "" && !IsValidEmail(document.getElementById(TxtEmailAddress)))
            isnoError = emailErrBox('TxtEmailAddressErr', TxtEmailAddress, 'TxtEmailAddresslbl');
        else
            noemailErrBox('TxtEmailAddressErr', TxtEmailAddress, 'TxtEmailAddresslbl');
    }
    if (document.getElementById(TxtFirstName).value == "") {
        isnoError = emailErrBox('TxtFirstNameErr', TxtFirstName, 'TxtFirstNamelbl');
    }
    else {
        noemailErrBox('TxtFirstNameErr', TxtFirstName, 'TxtFirstNamelbl');
    }

    if (document.getElementById(TxtLastName).value == "")
        isnoError = emailErrBox('TxtLastNameErr', TxtLastName, 'TxtLastNamelbl');
    else
        noemailErrBox('TxtLastNameErr', TxtLastName, 'TxtLastNamelbl');


    if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value != "6") {
        if (document.getElementById(DrpHStayedin).options[document.getElementById(DrpHStayedin).selectedIndex].value == "0")
            isnoError = emailErrDD('DrpHStayedinErr', 'DrpHStayedinlbl');
        else
            noemailErrDD('DrpHStayedinErr', 'DrpHStayedinlbl');
    }

    if (document.getElementById(TxtRoomNumbers).value != "" && !IsValidChars(document.getElementById(TxtRoomNumbers).value, "1234567890"))
        isnoError = emailErrBox('TxtRoomNumbersErr', TxtRoomNumbers, 'TxtRoomNumberslbl');
    else
        noemailErrBox('TxtRoomNumbersErr', TxtRoomNumbers, 'TxtRoomNumberslbl');

    if (document.getElementById(PhoneNo).value != "") {
        if (isvalidPhone(document.getElementById(PhoneNo)) == false) {
            isnoError = emailErrBox('TxtTelephoneErr', PhoneNo, 'TxtTelephonelbl');
        } else
            noemailErrBox('TxtTelephoneErr', TxtTelephone, 'TxtTelephonelbl');
    }
    else
        noemailErrBox('TxtTelephoneErr', TxtTelephone, 'TxtTelephonelbl');

    if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "5") {

        if (document.getElementById(DrpCityHotels).options[document.getElementById(DrpCityHotels).selectedIndex].text == "--Select a City, Hotel--")
            isnoError = emailErrDD('DrpCityHotelsErr', 'DrpCityHotelslbl');
        else
            noemailErrDD('DrpCityHotelsErr', 'DrpCityHotelslbl');
    }

    if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "2") {
        if (document.getElementById(ddl_eventcity).options[document.getElementById(ddl_eventcity).selectedIndex].text == "--Select a City, Hotel--")
            isnoError = emailErrDD('ddl_eventcityErr', 'ddl_eventcitylbl');
        else
            noemailErrDD('ddl_eventcityErr', 'ddl_eventcitylbl');
    }

    if (document.getElementById(ddl_Purpose).options[document.getElementById(ddl_Purpose).selectedIndex].value == "6") {
        if (document.getElementById(ddl_hotelres).options[document.getElementById(ddl_hotelres).selectedIndex].text == "--Select a City, Hotel--")
            isnoError = emailErrDD('ddl_hotelresErr', 'ddl_hotelreslbl');
        else
            noemailErrDD('ddl_hotelresErr', 'ddl_hotelreslbl');

        if (document.getElementById(txt_adults).value != "" && !IsValidChars(document.getElementById(txt_adults).value, "1234567890"))
            isnoError = emailErrBox('txt_adultsErr', txt_adults, 'txt_adultslbl');
        else
            noemailErrBox('txt_adultsErr', txt_adults, 'txt_adultslbl');

        if (document.getElementById(txt_children).value != "" && !IsValidChars(document.getElementById(txt_children).value, "1234567890"))
            isnoError = emailErrBox('txt_childrenErr', txt_children, 'txt_childrenlbl');
        else
            noemailErrBox('txt_childrenErr', txt_children, 'txt_childrenlbl');
    }
    if (isnoError == false) {

        document.getElementById('errMsgTxt').style.display = "block";
        document.getElementById('div_Required').className = "error_msg_text";
        document.getElementById('div_Required').style.display = "block";
    }
    else {

        document.getElementById('errMsgTxt').style.display = "none";
        document.getElementById('div_Required').className = "";
    }
    return isnoError;
}
       

/*-------------email-us-end-------------*/
/*-------------event-results-start-------------*/
function eventresultErrDD(divid) {
    document.getElementById(divid).style.display = "block";
    return false;
}

function eventresultnoErrBox(divid) {
    document.getElementById(divid).style.display = "none";
}
/*-------------event-results-end-------------*/
/*..............common........................*/
function trim(str) {
    return str.replace(/^\s*|\s*$/g, "");
}

function IsValidEmail(email) {
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (filter.test(email.value)) {
        return true;
    }
    else
    {  return false; }
}
//AlbhuNumeric Validation
function alphaNumericCheck(ctrl) {
    var regex = /^[0-9A-Za-z\s\_,*]+$/; //^[a-zA-z]+$/
    if (regex.test(ctrl.value)) {
        return true;
    } else {
        return false;
    }
}

//Character Validation
function fn_Character_Check(Char_To_Be_Checked, Valid_Char) {
    checkStr = Char_To_Be_Checked;
    checkOK1 = Valid_Char;

    var allValid = true;
    var m;
    var cnt;
    cnt = 0;

    for (k = 0; k < checkStr.length; k++) {
        m = checkStr.charAt(k);
        if (m == " ") {
            if (cnt == 0) {
                cnt = cnt + 1;
                break;
            }
        }
        else {
            cnt = 0;
            break;
        }
    }

    if (cnt == 0) {
        for (i = 0; i < checkStr.length; i++) {
            ch = checkStr.charAt(i);
            for (j = 0; j < checkOK1.length; j++)
                if ((checkStr.charCodeAt(i) == 92) == true) {
                    break;
                }
                else {
                    if (ch == checkOK1.charAt(j))
                        break;


                }

            if (j == checkOK1.length) {
                allValid = false;
                break;
            }
        }


    }

    else {
        allValid = false;

    }

    return allValid;

}

function PostalCode_validation(val) {
    //var regEx = /[a-zA-Z][0-9][a-zA-Z](-| |)[0-9][a-zA-Z][0-9]/;
    var regEx = /d{5}(-\d{4})|[0-9]{5}|[0-9]{6}|[0-9][a-zA-Z]|[a-zA-Z][0-9]/;
    if (!regEx.test(val)) {
        return false;
    }
}

function SpaceValidation(valstr) {
    var chk;
    var countcheck;
    countcheck = 0;
    for (ck = 0; ck < valstr.length; ck++) {
        chk = valstr.charAt(ck);
        if (chk == " " || chk == ".") {
            countcheck = 1;
            break;
        }
        else {
            countcheck = 0;
            break;
        }

    }
    return countcheck;
}

function isvalidPhone(ctr) {
    var rr = /^[0-9]{10,15}$/;
    if (!rr.test(ctr.value)) {
        return false;
    }
    else {
        return true;
    }
}
//check numeric with min 5 digits
function isNumeric(ctr) {
    var rr = /^[0-9]{5,15}$/;
    if (!rr.test(ctr.value)) {
        return false;
    }
    else {
        return true;
    }
}
function isNumericChk(sText) {
    var ValidChars = "0123456789.";
    var IsNumber = true;
    var Char;
    for (i = 0; i < sText.length && IsNumber == true; i++) {
        Char = sText.charAt(i);
        if (ValidChars.indexOf(Char) == -1) {
            IsNumber = false;
        }
    }
    return IsNumber;

}
//Check Null
function isNull(ctr) {
    if (ctr.value == "") {

        return true;
    }
}

function Number_Validation(val, Char_valid) {
    var Valid = Char_valid; // ;
    var Str = val;
    var cnt = 0;
    for (a = 0; a < Str.length; a++) {
        for (b = 0; b < Valid.length; b++) {
            if (Str.charAt(a) == Valid.charAt(b)) {
                cnt++;
            }
        }
    }
    if (cnt != 0) {
        return false;
    }
    else {
        return true;
    }
}

function DisplayDateNeeded() {
    document.getElementById(div_adddate).style.display = 'block';
    document.getElementById(div_displaydate).style.display = 'none';
}

function hideDateNeeded() {
    document.getElementById(div_adddate).style.display = 'none';
    document.getElementById(div_displaydate).style.display = 'block';
}
function ShowDiv(divid1, divid2) {
    document.getElementById(divid1).style.display = 'block';
    document.getElementById(divid2).style.display = 'none';
}

function HideDiv(divid1, divid2) {
    document.getElementById(divid1).style.display = 'none';
    document.getElementById(divid2).style.display = 'block';
}

/*-------------event-planning/request-for-proposal-business-start-------------*/
function fn_contact_meeting() {
    var isnoError = true;
    var fg;
    fg = 1;
    var tval;
    var strval;
    tval = 0;
    if (document.getElementById(ddl_hotel).selectedIndex == 0) {
        isnoError = emailErrBox('ddl_hotelErr', ddl_hotel, 'ddl_hotellbl');
        fg = 0;
    }
    else {
        noemailErrBox('ddl_hotelErr', ddl_hotel, 'ddl_hotellbl');
    }

    //fname validation
    if (document.getElementById(txt_fname).value == "") {
        noemailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
        isnoError = emailErrBox('txt_fnameErr', txt_fname, 'txt_fnamelbl');
        fg = 0;
    }
    else if (document.getElementById(txt_fname).value != "") {
        noemailErrBox('txt_fnameErr', txt_fname, 'txt_fnamelbl');
        var strfirst = document.getElementById(txt_fname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_fname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
            fg = 0;
        }
    }

    //lname validation
    if (document.getElementById(txt_lname).value == "") {
        noemailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
        isnoError = emailErrBox('txt_lnameErr', txt_lname, 'txt_lnamelbl');
        fg = 0;
    }
    else if (document.getElementById(txt_lname).value != "") {
        noemailErrBox('txt_lnameErr', txt_lname, 'txt_lnamelbl');
        var strfirst = document.getElementById(txt_lname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_lname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_lnameErrValid', txt_lname, 'txt_fnamelbl');
            fg = 0;
        }
    }

    //Company validation
    if (document.getElementById(txt_company).value == "") {
        noemailErrBox('txt_companyErrValid', txt_company, 'txt_companylbl');
        isnoError = emailErrBox('txt_companyErr', txt_company, 'txt_companylbl');
        fg = 0;
    }
    else if (document.getElementById(txt_company).value != "") {
        noemailErrBox('txt_companyErr', txt_company, 'txt_companylbl');
        var strcmpy = document.getElementById(txt_company).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_company).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_companyErrValid', txt_company, 'txt_companylbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_companyErrValid', txt_company, 'txt_companylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_companyErrValid', txt_company, 'txt_companylbl');
            fg = 0;
        }
    }

    //Job validation
    if (document.getElementById(txt_job).value == "") {
        noemailErrBox('txt_jobErrValid', txt_job, 'txt_joblbl');
        isnoError = emailErrBox('txt_jobErr', txt_job, 'txt_joblbl');
        fg = 0;
    }
    else if (document.getElementById(txt_job).value != "") {
        noemailErrBox('txt_jobErr', txt_job, 'txt_joblbl');
        var strcmpy = document.getElementById(txt_job).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_job).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_jobErrValid', txt_job, 'txt_joblbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_jobErrValid', txt_job, 'txt_joblbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_jobErrValid', txt_job, 'txt_joblbl');
            fg = 0;
        }
    }

    //Address validation
    var ad;
    var caddr;
    caddr = 0;
    if (document.getElementById(txt_address).value == "") {
        noemailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
        isnoError = emailErrBox('txt_addressErr', txt_address, 'txt_addresslbl');
        fg = 0;
    }
    else if (document.getElementById(txt_address).value != "") {
        noemailErrBox('txt_addressErr', txt_address, 'txt_addresslbl');
        var r = document.getElementById(txt_address).value;
        var spaceaddr = SpaceValidation(r);
        if (spaceaddr != 1) {
            for (b = 0; b < r.length; b++) {
                ad = r.charAt(b);
                if (ad == ">" || ad == "<" || ad == "$" || ad == "?" || ad == "%" || ad == "*" || ad == "^" || ad == "!" || ad == "@" || trim(document.getElementById(txt_address).value) == "") {
                    isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
                    caddr = caddr + 1;
                }
                else {
                    noemailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
                }
            }
        }
        else {
            isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
            fg = 0;
        }

    }
    if (caddr != 0) {
        isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
        fg = 0;
    }

    //City validation
    if (document.getElementById(txt_city).value == "") {
        noemailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
        isnoError = emailErrBox('txt_cityErr', txt_city, 'txt_citylbl');
        fg = 0;
    }
    else if (document.getElementById(txt_city).value != "") {
        noemailErrBox('txt_cityErr', txt_city, 'txt_citylbl');
        var strcmpy = document.getElementById(txt_city).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_city).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
            fg = 0;
        }
    }

    //state validation
    if (document.getElementById(txt_state).value == "") {
        noemailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
        isnoError = emailErrBox('txt_stateErr', txt_state, 'txt_statelbl');
        fg = 0;
    }
    else if (document.getElementById(txt_state).value != "") {
        noemailErrBox('txt_stateErr', txt_state, 'txt_statelbl');
        var strcmpy = document.getElementById(txt_state).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_state).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
            fg = 0;
        }
    }

    //zip code validation
  if (document.getElementById(txt_zip).value != "") {
        var strcmpy = document.getElementById(txt_zip).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (PostalCode_validation(document.getElementById(txt_zip).value) == false) {
                isnoError = emailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
            fg = 0;
        }
    }
    //country validation
    if (document.getElementById(txt_country).value == "") {
        noemailErrBox('txt_countryErrValid', txt_country, 'txt_countrylbl');
        isnoError = emailErrBox('txt_countryErr', txt_country, 'txt_countrylbl');
        fg = 0;
    }
    else if (document.getElementById(txt_country).value != "") {
        noemailErrBox('txt_countryErr', txt_country, 'txt_countrylbl');
        var strcmpy = document.getElementById(txt_country).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_country).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_countryErrValid', txt_country, 'txt_countrylbl');
                fg = 0;

            }
            else {
                noemailErrBox('txt_countryErrValid', txt_country, 'txt_countrylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_countryErrValid', txt_country, 'txt_countrylbl');
            fg = 0;
        }
    }

    //email validation
    if (document.getElementById(txt_email).value != "") {
        noemailErrBox('txt_emailErr', txt_email, 'txt_emaillbl');
        if (IsValidEmail(document.getElementById(txt_email)) == false) {
            isnoError = emailErrBox('txt_emailErrValid', txt_email, 'txt_emaillbl');
            fg = 0;
        } else { noemailErrBox('txt_emailErrValid', txt_email, 'txt_emaillbl'); }
    }
    else
    { noemailErrBox('txt_emailErrValid', txt_email, 'txt_emaillbl'); isnoError = emailErrBox('txt_emailErr', txt_email, 'txt_emaillbl'); fg = 0; }

    //telephoneno validation
    if (document.getElementById(txt_teleno).value != "") {
        noemailErrBox('txt_telenoErr', txt_teleno, 'txt_telenolbl');
        if (isvalidPhone(document.getElementById(txt_teleno)) == false) {
            isnoError = emailErrBox('txt_telenoErrValid', txt_teleno, 'txt_telenolbl');
            fg = 0;
        } else { noemailErrBox('txt_telenoErrValid', txt_teleno, 'txt_telenolbl'); }
    }
    else
    { isnoError = emailErrBox('txt_telenoErr', txt_teleno, 'txt_telenolbl'); fg = 0; }
    //faxno validation
    if (document.getElementById(txt_fax).value != "") {
        if (isNumeric(document.getElementById(txt_fax)) == false) {
            isnoError = emailErrBox('txt_faxErrValid', txt_fax, 'txt_faxlbl');
            fg = 0;
        } else { noemailErrBox('txt_faxErrValid', txt_fax, 'txt_faxlbl'); }
    }

    if (fg == 1) {
        document.getElementById('div_error').style.display = "none";
        document.getElementById('div_Reqfield').className = "";
        document.getElementById(div_contact).style.display = 'none';
        document.getElementById(div_meetingdetails).style.display = 'block';
        document.getElementById(div_meetingrequirements).style.display = 'none';
    }
    else {
        document.getElementById('div_error').style.display = "block";
        document.getElementById('div_Reqfield').className = "errDiv";
    }

}
/*-------------event-planning/request-for-proposal-business-end-------------*/

function fn_personal() {
    document.getElementById(div_contact).style.display = 'block';
    document.getElementById(div_meetingdetails).style.display = 'none';
    document.getElementById(div_meetingrequirements).style.display = 'none';
}
function businessErrBox(divid, txtid, lblid) {
    document.getElementById(divid).style.display = "block";
    document.getElementById(txtid).className = "ctrl_text_err";
    document.getElementById(lblid).className = "lable_text_full_width_err";
    return false;
}
function nobusinessErrBox(divid, txtid, lblid) {
    document.getElementById(divid).style.display = "none";
    document.getElementById(txtid).className = "ctrl_text";
    document.getElementById(lblid).className = "lable_text_full_width";
}
function businessErrBox1(divid, txtid) {
    document.getElementById(divid).style.display = "block";
    document.getElementById(txtid).className = "ctrl_text_err";
    return false;
}
function nobusinessErrBox1(divid, txtid) {
    document.getElementById(divid).style.display = "none";
    document.getElementById(txtid).className = "ctrl_text";
}
function div_display(divid) {
    if (document.getElementById(divid).style.display == "none") { document.getElementById(divid).style.display = "block"; } else { document.getElementById(divid).style.display == "none"; }
}
function fn_requirements() {
    var md = 1;
    if (document.getElementById(cmb_room).selectedIndex == 0) {
        isnoError = businessErrBox('cmb_roomErr', cmb_room, 'cmb_roomlbl');
        md = 0;
    } else { nobusinessErrBox('cmb_roomErr', cmb_room, 'cmb_roomlbl'); }

    if (document.getElementById(txt_break_rooms).value != "") {
        nobusinessErrBox('txt_break_roomsErr', txt_break_rooms, 'txt_break_roomslbl');

        if (isNumericChk(document.getElementById(txt_break_rooms).value) == false) {

            isnoError = businessErrBox('txt_break_roomsErr', txt_break_rooms, 'txt_break_roomslbl');
            md = 0;
        } else { nobusinessErrBox('txt_break_roomsErr', txt_break_rooms, 'txt_break_roomslbl'); }
    }
    if (document.getElementById(txt_attendees).value == "") {
        nobusinessErrBox('txt_attendeesErrValid', txt_attendees, 'txt_attendeeslbl');
        isnoError = businessErrBox('txt_attendeesErr', txt_attendees, 'txt_attendeeslbl');
        md = 0;
    } else {
        nobusinessErrBox('txt_attendeesErr', txt_attendees, 'txt_attendeeslbl');
        if (isNumericChk(document.getElementById(txt_attendees).value) == false) {
            isnoError = businessErrBox('txt_attendeesErrValid', txt_attendees, 'txt_attendeeslbl');
            md = 0;
        }
        else { nobusinessErrBox('txt_attendeesErrValid', txt_attendees, 'txt_attendeeslbl'); }
    }
    if (document.getElementById(txt_rooms).value == "") {
        nobusinessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl');
        isnoError = businessErrBox('txt_roomsErr', txt_rooms, 'txt_roomslbl');
        md = 0;
    } else {
        nobusinessErrBox('txt_roomsErr', txt_rooms, 'txt_roomslbl');
        if (isNumericChk(document.getElementById(txt_rooms).value) == false) {
            isnoError = businessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl');
            md = 0;
        }
        else { nobusinessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl'); }
    }
    if (document.getElementById(txt_event).value == "") {
        nobusinessErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl');
        isnoError = businessErrBox('txt_eventErr', txt_event, 'txt_eventlbl');
        md = 0;
    } else {
        nobusinessErrBox('txt_eventErr', txt_event, 'txt_eventlbl');
        if (alphaNumericCheck(document.getElementById(txt_event).value) == false) {
            isnoError = businessErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl');
            md = 0;
        }
        else { nobusinessErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl'); }
    }
    if (document.getElementById(cmb_meeting).selectedIndex == 0) {
        isnoError = businessErrBox('cmb_meetingErr', cmb_meeting, 'cmb_meetinglbl');
        md = 0;
    } else { nobusinessErrBox('cmb_meetingErr', cmb_meeting, 'cmb_meetinglbl'); }

    if (md == 1) {
        document.getElementById('div_err_msg').style.display = "none";
        document.getElementById('div_req').className = "";
        document.getElementById(div_contact).style.display = 'none';
        document.getElementById(div_meetingdetails).style.display = 'none';
        document.getElementById(div_meetingrequirements).style.display = 'block';
    }
    else {
        document.getElementById('div_err_msg').style.display = "block";
        document.getElementById('div_req').className = "errDiv";
    }
}

//---------------------Meeting Requirnments-----------------------------
function fn_food_require() {
    var isnoError = true;
    var flagrequire;
    flagrequire = 1;

    if (document.getElementById(txt_audio).value != "") {
        var txtreqaudio;
        var txtaudiocount;
        txtaudiocount = 0;
        var strcheck;
        txtreqaudio = trim(document.getElementById(txt_audio).value);
        if (txtreqaudio.length > 249) {
            isnoError = businessErrBox('txt_audioErr', txt_audio, 'txt_audiolbl');
            flagrequire = 0;
        }
        else {
            nobusinessErrBox('txt_audioErr', txt_audio, 'txt_audiolbl');
        }

    }
    else {
        nobusinessErrBox('txt_audioErr', txt_audio, 'txt_audiolbl');
    }

    if (document.getElementById(txt_break1).value != "") {

        nobusinessErrBox1('txt_break1Err', txt_break1);

        if (isNumericChk(document.getElementById(txt_break1).value) == false) {
            isnoError = businessErrBox1('txt_break1Err', txt_break1);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_break1Err', txt_break1); }
    }
    if (document.getElementById(txt_break2).value != "") {

        nobusinessErrBox1('txt_break2Err', txt_break2);

        if (isNumericChk(document.getElementById(txt_break2).value) == false) {
            isnoError = businessErrBox1('txt_break2Err', txt_break2);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_break2Err', txt_break2); }
    }

    if (document.getElementById(txt_lunch1).value != "") {

        nobusinessErrBox1('txt_lunch1Err', txt_lunch1);

        if (isNumericChk(document.getElementById(txt_lunch1).value) == false) {
            isnoError = businessErrBox1('txt_lunch1Err', txt_lunch1);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_lunch1Err', txt_lunch1); }
    }
    if (document.getElementById(txt_lunch2).value != "") {

        nobusinessErrBox1('txt_lunch2Err', txt_lunch2);

        if (isNumericChk(document.getElementById(txt_lunch2).value) == false) {
            isnoError = businessErrBox1('txt_lunch2Err', txt_lunch2);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_lunch2Err', txt_lunch2); }
    }
    if (document.getElementById(txt_tails1).value != "") {

        nobusinessErrBox1('txt_tails1Err', txt_tails1);

        if (isNumericChk(document.getElementById(txt_tails1).value) == false) {
            isnoError = businessErrBox1('txt_tails1Err', txt_tails1);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_tails1Err', txt_tails1); }
    }
    if (document.getElementById(txt_tails2).value != "") {

        nobusinessErrBox1('txt_tails2Err', txt_tails2);

        if (isNumericChk(document.getElementById(txt_tails2).value) == false) {
            isnoError = businessErrBox1('txt_tails2Err', txt_tails2);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_tails2Err', txt_tails2); }
    }

    if (document.getElementById(txt_nodinner1).value != "") {

        nobusinessErrBox1('txt_nodinner1Err', txt_nodinner1);

        if (isNumericChk(document.getElementById(txt_nodinner1).value) == false) {
            isnoError = businessErrBox1('txt_nodinner1Err', txt_nodinner1);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_nodinner1Err', txt_nodinner1); }
    }
    if (document.getElementById(txt_nodinner2).value != "") {

        nobusinessErrBox1('txt_nodinner2Err', txt_nodinner2);

        if (isNumericChk(document.getElementById(txt_nodinner2).value) == false) {
            isnoError = businessErrBox1('txt_nodinner2Err', txt_nodinner2);
            flagrequire = 0;
        } else { nobusinessErrBox1('txt_nodinner2Err', txt_nodinner2); }
    }
    if (document.getElementById(txt_additional).value != "") {
        var txtreqaudio;
        var txtaudiocount;
        txtaudiocount = 0;
        var strcheck;
        txtreqaudio = trim(document.getElementById(txt_additional).value);
        if (txtreqaudio.length > 249) {
            isnoError = businessErrBox('txt_additionalErr', txt_additional, 'txt_additionallbl');
            flagrequire = 0;
        }
        else {
            nobusinessErrBox('txt_additionalErr', txt_additional, 'txt_additionallbl');
        }

    }
    else {
        nobusinessErrBox('txt_additionalErr', txt_additional, 'txt_additionallbl');
    }
    if (flagrequire == 1) {
        return true;
    }
    else {
        return false;
    }
}
function fn_require_meeting() {
    document.getElementById(div_meetingrequirements).style.display = 'none';
    document.getElementById(div_contact).style.display = 'none';
    document.getElementById(div_meetingdetails).style.display = 'block';
}
/*-------------event-planning/request-for-proposal-business-End-------------*/
/*-------------event-planning/request-for-proposal-Wedding-Start-------------*/
function fn_validate() {
    var isnoError = true;
    var pw = 1;
    if (document.getElementById(txt_event).value == "") {
        noemailErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl');
        isnoError = emailErrBox('txt_eventErr', txt_event, 'txt_eventlbl');
        pw = 0;
    } else {
        noemailErrBox('txt_eventErr', txt_event, 'txt_eventlbl');
        if (alphaNumericCheck(document.getElementById(txt_event)) == false) {
            isnoError = emailErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl');
            pw = 0;
        }
        else { noemailErrBox('txt_eventErrValid', txt_event, 'txt_eventlbl'); }
    }
    if (document.getElementById(ddl_cityhotel).value == "--Select a City and Hotel--") {
        isnoError = emailErrBox('ddl_cityhotelErr', ddl_cityhotel, 'ddl_cityhotellbl');
        pw = 0;
    }
    else
    { noemailErrBox('ddl_cityhotelErr', ddl_cityhotel, 'ddl_cityhotellbl'); }

    if (document.getElementById(txt_cities1).value != "") {
        if (!fn_Character_Check(document.getElementById(txt_cities1).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
            isnoError = emailErrBox('txt_cities1Err', txt_cities1, 'txt_cities1lbl');
            pw = 0;
        }
        else {
            noemailErrBox('txt_cities1Err', txt_cities1, 'txt_cities1lbl');
        }
    }
    else {
        noemailErrBox('txt_cities1Err', txt_cities1, 'txt_cities1lbl');
    }
    if (document.getElementById(txt_cities2).value != "") {
        if (!fn_Character_Check(document.getElementById(txt_cities1).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
            isnoError = emailErrBox('txt_cities2Err', txt_cities2, 'txt_cities1lbl');
            pw = 0;
        }
        else {
            noemailErrBox('txt_cities2Err', txt_cities2, 'txt_cities1lbl');
        }
    }
    else {
        noemailErrBox('txt_cities2Err', txt_cities2, 'txt_cities1lbl');
    }
    if (document.getElementById(txt_cities3).value != "") {
        if (!fn_Character_Check(document.getElementById(txt_cities3).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
            isnoError = emailErrBox('txt_cities3Err', txt_cities3, 'txt_cities1lbl');
            pw = 0;
        }
        else {
            noemailErrBox('txt_cities3Err', txt_cities3, 'txt_cities1lbl');
        }
    }
    else {
        noemailErrBox('txt_cities3Err', txt_cities3, 'txt_cities1lbl');
    }
    if (document.getElementById(cmb_req).value == "--Select Room Type--") {
        isnoError = emailErrBox('cmb_reqErr', cmb_req, 'cmb_reqlbl');
        pw = 0;
    }
    else
    { noemailErrBox('cmb_reqErr', cmb_req, 'cmb_reqlbl'); }

    var dte = document.getElementById(Weddingdate).options[document.getElementById(Weddingdate).selectedIndex].value;
    var mt = document.getElementById(Weddingmonth).options[document.getElementById(Weddingmonth).selectedIndex].value;
    var a = new Array();
    a = mt.split(":");
    var dt = new Date(a[1], a[0], dte);

    var ddte = document.getElementById(DecisiondateOut).options[document.getElementById(DecisiondateOut).selectedIndex].value;
    var dmt = document.getElementById(DecisionmonthOut).options[document.getElementById(DecisionmonthOut).selectedIndex].value;
    var b = new Array();
    b = dmt.split(":");
    var ddt = new Date(b[1], b[0], ddte);

    var ddate = parseInt(dt.getDate() - ddt.getDate());
   // alert(dt <= ddt);
    if (dt <= ddt) {
        isnoError = emailErrBox('DecisiondateErr', DecisionmonthOut, 'Decisiondatelbl');
        pw = 0;
    }
    else {
        noemailErrBox('DecisiondateErr', DecisionmonthOut, 'Decisiondatelbl');

    }
    //Approximate Number of Attendees
    if (document.getElementById(txt_attend).value == "") {
        nobusinessErrBox('txt_attendErrValid', txt_attend, 'txt_attendlbl');
        isnoError = businessErrBox('txt_attendErr', txt_attend, 'txt_attendlbl');
        pw = 0;
    }
    else if (isNumericChk(document.getElementById(txt_attend).value) == false) {
        nobusinessErrBox('txt_attendErr', txt_attend, 'txt_attendlbl');
        isnoError = businessErrBox('txt_attendErrValid', txt_attend, 'txt_attendlbl');
        pw = 0;
    }
    else { nobusinessErrBox('txt_attendErrValid', txt_attend, 'txt_attendlbl'); nobusinessErrBox('txt_attendErr', txt_attend, 'txt_attendlbl'); }

    //Approximate Number of Guest Rooms Required:
    if (document.getElementById(txt_rooms).value == "") {
        nobusinessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl');
        isnoError = businessErrBox('txt_roomsErr', txt_rooms, 'txt_roomslbl');
        pw = 0;
    }
    else if (isNumericChk(document.getElementById(txt_rooms).value) == false) {
        nobusinessErrBox('txt_roomsErr', txt_rooms, 'txt_roomslbl');
        isnoError = businessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl');
        pw = 0;
    }
    else { nobusinessErrBox('txt_roomsErrValid', txt_rooms, 'txt_roomslbl'); nobusinessErrBox('txt_roomsErr', txt_rooms, 'txt_roomslbl'); }

    //For how many nights will guest rooms be required
    if (document.getElementById(txt_nights).value == "") {
        nobusinessErrBox('txt_nightsErrValid', txt_nights, 'txt_nightslbl');
        isnoError = businessErrBox('txt_nightsErr', txt_nights, 'txt_nightslbl');
        pw = 0;
    }
    else if (isNumericChk(document.getElementById(txt_nights).value) == false) {
        nobusinessErrBox('txt_nightsErr', txt_nights, 'txt_nightslbl');
        isnoError = businessErrBox('txt_nightsErrValid', txt_nights, 'txt_nightslbl');
        pw = 0;
    }
    else { nobusinessErrBox('txt_nightsErrValid', txt_nights, 'txt_nightslbl'); nobusinessErrBox('txt_nightsErr', txt_nights, 'txt_nightslbl'); }
    //* Number of Functions
    if (document.getElementById(txt_functions).value == "") {
        nobusinessErrBox('txt_functionsErrValid', txt_functions, 'txt_functionslbl');
        isnoError = businessErrBox('txt_functionsErr', txt_functions, 'txt_functionslbl');
        pw = 0;
    }
    else if (isNumericChk(document.getElementById(txt_functions).value) == false) {
        nobusinessErrBox('txt_functionsErr', txt_functions, 'txt_functionslbl');
        isnoError = businessErrBox('txt_functionsErrValid', txt_functions, 'txt_functionslbl');
        pw = 0;
    }
    else { nobusinessErrBox('txt_functionsErrValid', txt_functions, 'txt_functionslbl'); nobusinessErrBox('txt_functionsErr', txt_functions, 'txt_functionslbl'); }
    //Nature of Functions
    if (document.getElementById(txt_nature).value == "") {
        nobusinessErrBox('txt_natureErrValid', txt_nature, 'txt_naturelbl');
        isnoError = businessErrBox('txt_natureErr', txt_nature, 'txt_naturelbl');
        pw = 0;
    }
    else if (!fn_Character_Check(document.getElementById(txt_nature).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
        nobusinessErrBox('txt_natureErr', txt_nature, 'txt_naturelbl');
        isnoError = businessErrBox('txt_natureErrValid', txt_nature, 'txt_naturelbl');
        pw = 0;
    }
    else { nobusinessErrBox('txt_natureErrValid', txt_nature, 'txt_naturelbl'); nobusinessErrBox('txt_natureErr', txt_nature, 'txt_naturelbl'); }

    //Approximate Budget
    if (document.getElementById(txt_budget).value != "") {
        if (isNumericChk(document.getElementById(txt_budget).value) == false) {
            nobusinessErrBox('txt_budgetErr', txt_budget, 'txt_budgetlbl');
            isnoError = businessErrBox('txt_budgetErr', txt_budget, 'txt_budgetlbl');
            pw = 0;
        } 
    }
    else { nobusinessErrBox('txt_budgetErr', txt_budget, 'txt_budgetlbl'); }
    //
    if (pw == 1) {
        document.getElementById('div_error_Page').style.display = "none";
        document.getElementById('div_Reqfield_Msg').className = "";
        //document.getElementById('ddl_hotel').selectedIndex=citycountry;
        document.getElementById(div_wedding).style.display = "none";
        document.getElementById(div_contact).style.display = 'block';
        document.location.href = '#top';
    }
    else {
        document.getElementById('div_error_Page').style.display = "block";
        document.getElementById('div_Reqfield_Msg').className = "errDiv";
    }

}
function fn_wedding() {
    document.getElementById(div_wedding).style.display = "block";
    document.getElementById(div_contact).style.display = "none";
}

function fn_contactval() {
    var isnoError = true;
    var wc = 1;
    //fname validation
    if (document.getElementById(txt_fname).value == "") {
        noemailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
        isnoError = emailErrBox('txt_fnameErr', txt_fname, 'txt_fnamelbl');
        wc = 0;
    }
    else if (document.getElementById(txt_fname).value != "") {
        noemailErrBox('txt_fnameErr', txt_fname, 'txt_fnamelbl');
        var strfirst = document.getElementById(txt_fname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_fname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
                wc = 0;

            }
            else {
                noemailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_fnameErrValid', txt_fname, 'txt_fnamelbl');
            wc = 0;
        }
    }

    //lname validation
    if (document.getElementById(txt_lname).value == "") {
        noemailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
        isnoError = emailErrBox('txt_lnameErr', txt_lname, 'txt_lnamelbl');
        wc = 0;
    }
    else if (document.getElementById(txt_lname).value != "") {
        noemailErrBox('txt_lnameErr', txt_lname, 'txt_lnamelbl');
        var strfirst = document.getElementById(txt_lname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_lname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
                wc = 0;

            }
            else {
                noemailErrBox('txt_lnameErrValid', txt_lname, 'txt_lnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_lnameErrValid', txt_lname, 'txt_fnamelbl');
            wc = 0;
        }
    }

    

    //Address validation
    var ad;
    var caddr;
    caddr = 0;
    if (document.getElementById(txt_address).value == "") {
        noemailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
        isnoError = emailErrBox('txt_addressErr', txt_address, 'txt_addresslbl');
        wc = 0;
    }
    else if (document.getElementById(txt_address).value != "") {
        noemailErrBox('txt_addressErr', txt_address, 'txt_addresslbl');
        var r = document.getElementById(txt_address).value;
        var spaceaddr = SpaceValidation(r);
        if (spaceaddr != 1) {
            for (b = 0; b < r.length; b++) {
                ad = r.charAt(b);
                if (ad == ">" || ad == "<" || ad == "$" || ad == "?" || ad == "%" || ad == "*" || ad == "^" || ad == "!" || ad == "@" || trim(document.getElementById(txt_address).value) == "") {
                    isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
                    caddr = caddr + 1;
                }
                else {
                    noemailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
                }
            }
        }
        else {
            isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_joblbl');
            wc = 0;
        }

    }
    if (caddr != 0) {
        isnoError = emailErrBox('txt_addressErrValid', txt_address, 'txt_addresslbl');
        wc = 0;
    }

    //City validation
    if (document.getElementById(txt_city).value == "") {
        noemailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
        isnoError = emailErrBox('txt_cityErr', txt_city, 'txt_citylbl');
        wc = 0;
    }
    else if (document.getElementById(txt_city).value != "") {
        noemailErrBox('txt_cityErr', txt_city, 'txt_citylbl');
        var strcmpy = document.getElementById(txt_city).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_city).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
                wc = 0;

            }
            else {
                noemailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_cityErrValid', txt_city, 'txt_citylbl');
            wc = 0;
        }
    }

    //state validation
    if (document.getElementById(txt_state).value == "") {
        noemailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
        isnoError = emailErrBox('txt_stateErr', txt_state, 'txt_statelbl');
        wc = 0;
    }
    else if (document.getElementById(txt_state).value != "") {
        noemailErrBox('txt_stateErr', txt_state, 'txt_statelbl');
        var strcmpy = document.getElementById(txt_state).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_state).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
                wc = 0;

            }
            else {
                noemailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_stateErrValid', txt_state, 'txt_statelbl');
            wc = 0;
        }
    }

    //zip code validation
//    if (document.getElementById(txt_zip).value == "") {
//        noemailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
//        isnoError = emailErrBox('txt_zipErr', txt_zip, 'txt_ziplbl');
//        wc = 0;
//    }
    /*else*/ if (document.getElementById(txt_zip).value != "") {
       // noemailErrBox('txt_zipErr', txt_zip, 'txt_ziplbl');
        var strcmpy = document.getElementById(txt_zip).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (PostalCode_validation(document.getElementById(txt_zip).value) == false) {
                isnoError = emailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
                wc = 0;

            }
            else {
                noemailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
            wc = 0;
        }
    }
    //country validation
    if (document.getElementById(txt_country).value == "Select a Country") {
        isnoError = emailErrBox('txt_countryErr', txt_country, 'txt_countrylbl');
        wc = 0;
    }
    else
    { noemailErrBox('txt_countryErr', txt_country, 'txt_countrylbl'); }

    //email validation
    if (document.getElementById(txt_email).value != "") {
        noemailErrBox('txt_emailErr', txt_email, 'txt_emaillbl');
        if (IsValidEmail(document.getElementById(txt_email)) == false) {
            isnoError = emailErrBox('txt_emailErrValid', txt_email, 'txt_emaillbl');
            wc = 0;
        } else { noemailErrBox('txt_emailErrValid', txt_email, 'txt_emaillbl'); }
    }
    else
    { isnoError = emailErrBox('txt_emailErr', txt_email, 'txt_emaillbl'); wc = 0; }

    //telephoneno validation
    if (document.getElementById(txt_teleno).value != "") {
        noemailErrBox('txt_telenoErr', txt_teleno, 'txt_telenolbl');
        if (isvalidPhone(document.getElementById(txt_teleno)) == false) {
            isnoError = emailErrBox('txt_telenoErrValid', txt_teleno, 'txt_telenolbl');
            wc = 0;
        } else { noemailErrBox('txt_telenoErrValid', txt_teleno, 'txt_telenolbl'); }
    }
    else
    { isnoError = emailErrBox('txt_telenoErr', txt_teleno, 'txt_telenolbl'); wc = 0; }
    //faxno validation
    if (document.getElementById(txt_fax).value != "") {
        if (isNumeric(document.getElementById(txt_fax)) == false) {
            isnoError = emailErrBox('txt_faxErrValid', txt_fax, 'txt_faxlbl');
            wc = 0;
        } else { noemailErrBox('txt_faxErrValid', txt_fax, 'txt_faxlbl'); }
    } 
    //mobile
    if (document.getElementById(txt_mobile).value != "") {
        if (isvalidPhone(document.getElementById(txt_mobile)) == false) {
            isnoError = emailErrBox('txt_mobileErrValid', txt_mobile, 'txt_mobilelbl');
            wc = 0;
        } else { noemailErrBox('txt_mobileErrValid', txt_mobile, 'txt_mobilelbl'); }
    }
    if (wc == 1) {
        document.getElementById('div_error').style.display = "none";
        document.getElementById('div_Reqfield').className = "";
        return true;
    } else {
        document.getElementById('div_error').style.display = "block";
        document.getElementById('div_Reqfield').className = "";
        return false;
    }
}
/*-------------event-planning/request-for-proposal-Wedding-End-------------*/
/*-------------event-planning/request-for-information-business Start-------------*/
function fn_contact_information_business() {
    var isnoError = true;
    var fcb = 1;
    if (document.getElementById(ddl_title).value == "Select") {
        isnoError = emailErrBox('ddl_titleErr', ddl_title, 'ddl_titlelbl');
        fcb = 0;
    }
    else
    { noemailErrBox('ddl_titleErr', ddl_title, 'ddl_titlelbl'); }
    //fname validation
    if (document.getElementById(txt_request_fname).value == "") {
        noemailErrBox('txt_request_fnameErrValid', txt_request_fname, 'txt_request_fnamelbl');
        isnoError = emailErrBox('txt_request_fnameErr', txt_request_fname, 'txt_request_fnamelbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_fname).value != "") {
        noemailErrBox('txt_request_fnameErr', txt_request_fname, 'txt_request_fnamelbl');
        var strfirst = document.getElementById(txt_request_fname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_fname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_request_fnameErrValid', txt_request_fname, 'txt_request_fnamelbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_fnameErrValid', txt_request_fname, 'txt_request_fnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_fnameErrValid', txt_request_fname, 'txt_request_fnamelbl');
            fcb = 0;
        }
    }
    //lname validation
    if (document.getElementById(txt_request_lname).value == "") {
        noemailErrBox('txt_request_lnameErrValid', txt_request_lname, 'txt_request_lnamelbl');
        isnoError = emailErrBox('txt_request_lnameErr', txt_request_lname, 'txt_request_lnamelbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_lname).value != "") {
        noemailErrBox('txt_request_lnameErr', txt_request_lname, 'txt_request_lnamelbl');
        var strfirst = document.getElementById(txt_request_lname).value;
        var strfirstct = SpaceValidation(strfirst);
        if (strfirstct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_lname).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ .')) {
                isnoError = emailErrBox('txt_request_lnameErrValid', txt_request_lname, 'txt_request_lnamelbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_lnameErrValid', txt_request_lname, 'txt_request_lnamelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_lnameErrValid', txt_request_lname, 'txt_fnamelbl');
            fcb = 0;
        }
    }
    //Company validation
    if (document.getElementById(txt_request_company).value == "") {
        //noemailErrBox('txt_request_companyErrValid', txt_request_company, 'txt_request_companylbl');
        isnoError = emailErrBox('txt_request_companyErr', txt_request_company, 'txt_request_companylbl');
        fcb = 0;
    }
    else { noemailErrBox('txt_request_companyErr', txt_request_company, 'txt_request_companylbl'); }
//    else if (document.getElementById(txt_request_company).value != "") {
//        noemailErrBox('txt_request_companyErr', txt_request_company, 'txt_request_companylbl');
//        var strcmpy = document.getElementById(txt_request_company).value;
//        var strcmpyct = SpaceValidation(strcmpy);
//        if (strcmpyct != 1) {
//            if (!fn_Character_Check(document.getElementById(txt_request_company).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
//                isnoError = emailErrBox('txt_request_companyErrValid', txt_request_company, 'txt_request_companylbl');
//                fcb = 0;

//            }
//            else {
//                noemailErrBox('txt_request_companyErrValid', txt_request_company, 'txt_request_companylbl');
//            }
//        }
//        else {
//            isnoError = emailErrBox('txt_request_companyErrValid', txt_request_company, 'txt_request_companylbl');
//            fcb = 0;
//        }
//    }
    //Job-Title
    if (document.getElementById(txt_request_job).value == "") {
        noemailErrBox('txt_request_jobErrValid', txt_request_job, 'txt_request_joblbl');
        isnoError = emailErrBox('txt_request_jobErr', txt_request_job, 'txt_request_joblbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_job).value != "") {
        noemailErrBox('txt_request_jobErr', txt_request_job, 'txt_request_joblbl');
        var strcmpy = document.getElementById(txt_request_job).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_job).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_request_jobErrValid', txt_request_job, 'txt_request_joblbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_jobErrValid', txt_request_job, 'txt_request_joblbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_jobErrValid', txt_request_job, 'txt_request_joblbl');
            fcb = 0;
        }
    }
    //Address validation
    var ad;
    var caddr;
    caddr = 0;
    if (document.getElementById(txt_request_address).value == "") {
        noemailErrBox('txt_request_addressErrValid', txt_request_address, 'txt_request_addresslbl');
        isnoError = emailErrBox('txt_request_addressErr', txt_request_address, 'txt_request_addresslbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_address).value != "") {
        noemailErrBox('txt_request_addressErr', txt_request_address, 'txt_request_addresslbl');
        var r = document.getElementById(txt_request_address).value;
        var spaceaddr = SpaceValidation(r);
        if (spaceaddr != 1) {
            for (b = 0; b < r.length; b++) {
                ad = r.charAt(b);
                if (ad == ">" || ad == "<" || ad == "$" || ad == "?" || ad == "%" || ad == "*" || ad == "^" || ad == "!" || ad == "@" || trim(document.getElementById(txt_request_address).value) == "") {
                    isnoError = emailErrBox('txt_request_addressErrValid', txt_request_address, 'txt_request_addresslbl');
                    caddr = caddr + 1;
                }
                else {
                    noemailErrBox('txt_request_addressErrValid', txt_request_address, 'txt_request_addresslbl');
                }
            }
        }
        else {
            isnoError = emailErrBox('txt_request_addressErrValid', txt_request_address, 'txt_request_addresslbl');
            fcb = 0;
        }

    }
    if (caddr != 0) {
        isnoError = emailErrBox('txt_request_addressErrValid', txt_request_address, 'txt_request_addresslbl');
        fcb = 0;
    }
    //City
    if (document.getElementById(txt_request_city).value == "") {
        noemailErrBox('txt_request_cityErrValid', txt_request_city, 'txt_request_citylbl');
        isnoError = emailErrBox('txt_request_cityErr', txt_request_city, 'txt_request_citylbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_city).value != "") {
        noemailErrBox('txt_request_cityErr', txt_request_city, 'txt_request_citylbl');
        var strcmpy = document.getElementById(txt_request_city).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_city).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_request_cityErrValid', txt_request_city, 'txt_request_citylbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_cityErrValid', txt_request_city, 'txt_request_citylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_cityErrValid', txt_request_city, 'txt_request_citylbl');
            fcb = 0;
        }
    }
    //Country
    if (document.getElementById(txt_request_country).value == "") {
        noemailErrBox('txt_request_countryErrValid', txt_request_country, 'txt_request_countrylbl');
        isnoError = emailErrBox('txt_request_countryErr', txt_request_country, 'txt_request_countrylbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_country).value != "") {
        noemailErrBox('txt_request_countryErr', txt_request_country, 'txt_request_countrylbl');
        var strcmpy = document.getElementById(txt_request_country).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_country).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_request_countryErrValid', txt_request_country, 'txt_request_countrylbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_countryErrValid', txt_request_country, 'txt_request_countrylbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_countryErrValid', txt_request_country, 'txt_request_countrylbl');
            fcb = 0;
        }
    }
    //email
    if (document.getElementById(txt_request_email).value != "") {
        noemailErrBox('txt_request_emailErr', txt_request_email, 'txt_request_emaillbl');
        if (IsValidEmail(document.getElementById(txt_request_email)) == false) {
            isnoError = emailErrBox('txt_request_emailErrValid', txt_request_email, 'txt_request_emaillbl');
            fcb = 0;
        } else { noemailErrBox('txt_request_emailErrValid', txt_request_email, 'txt_request_emaillbl'); }
    }
    else
    { isnoError = emailErrBox('txt_request_emailErr', txt_request_email, 'txt_request_emaillbl'); fcb = 0; }
    //zip
    if (document.getElementById(txt_request_zip).value != "") {
        noemailErrBox('txt_request_zipErr', txt_request_zip, 'txt_request_ziplbl');
        var strcmpy = document.getElementById(txt_request_zip).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (PostalCode_validation(document.getElementById(txt_request_zip).value) == false) {
                isnoError = emailErrBox('txt_request_zipErrValid', txt_request_zip, 'txt_request_ziplbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_zipErrValid', txt_request_zip, 'txt_request_ziplbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_zipErrValid', txt_zip, 'txt_ziplbl');
            fcb = 0;
        }
    }
    //phone
    if (document.getElementById(txt_request_teleno).value != "") {
        noemailErrBox('txt_request_telenoErr', txt_request_teleno, 'txt_request_telenolbl');
        if (isvalidPhone(document.getElementById(txt_request_teleno)) == false) {
            isnoError = emailErrBox('txt_request_telenoErrValid', txt_request_teleno, 'txt_request_telenolbl');
            fcb = 0;
        } else { noemailErrBox('txt_request_telenoErrValid', txt_request_teleno, 'txt_request_telenolbl'); }
    }
   
    //Fax
    if (document.getElementById(txt_request_fax).value != "") {
        if (isNumeric(document.getElementById(txt_request_fax)) == false) {
            isnoError = emailErrBox('txt_request_faxErrValid', txt_request_fax, 'txt_request_faxlbl');
            fcb = 0;
        } else { noemailErrBox('txt_request_faxErrValid', txt_request_fax, 'txt_request_faxlbl'); }
    }
    //tentativeMonth
    if (document.getElementById(txt_request_tentative).value == "") {
        noemailErrBox('txt_request_tentativeErrValid', txt_request_tentative, 'txt_request_tentativelbl');
        isnoError = emailErrBox('txt_request_tentativeErr', txt_request_tentative, 'txt_request_tentativelbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_tentative).value != "") {
        noemailErrBox('txt_request_tentativeErr', txt_request_tentative, 'txt_request_tentativelbl');
        var strcmpy = document.getElementById(txt_request_tentative).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_tentative).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &().')) {
                isnoError = emailErrBox('txt_request_tentativeErrValid', txt_request_tentative, 'txt_request_tentativelbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_tentativeErrValid', txt_request_tentative, 'txt_request_tentativelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_tentativeErrValid', txt_request_tentative, 'txt_request_tentativelbl');
            fcb = 0;
        }
    }
    //Require
    if (document.getElementById(txt_request_require).value == "") {
        noemailErrBox('txt_request_requireErrValid', txt_request_require, 'txt_request_requirelbl');
        isnoError = emailErrBox('txt_request_requireErr', txt_request_require, 'txt_request_requirelbl');
        fcb = 0;
    }
    else if (document.getElementById(txt_request_require).value != "") {
        noemailErrBox('txt_request_requireErr', txt_request_require, 'txt_request_requirelbl');
        var strcmpy = document.getElementById(txt_request_require).value;
        var strcmpyct = SpaceValidation(strcmpy);
        if (strcmpyct != 1) {
            if (!fn_Character_Check(document.getElementById(txt_request_require).value, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ &()._')) {
                isnoError = emailErrBox('txt_request_requireErrValid', txt_request_require, 'txt_request_requirelbl');
                fcb = 0;

            }
            else {
                noemailErrBox('txt_request_requireErrValid', txt_request_require, 'txt_request_requirelbl');
            }
        }
        else {
            isnoError = emailErrBox('txt_request_requireErrValid', txt_request_require, 'txt_request_requirelbl');
            fcb = 0;
        }
    }
    
    if (fcb == 1) {
        document.getElementById('div_error').style.display = "none";
        document.getElementById('div_Reqfield').className = "";
        return true;
    } else {
        document.getElementById('div_error').style.display = "block";
        document.getElementById('div_Reqfield').className = "";
        return false;
    }
}
//Enter Numbers only
function isNumberKey(evt) {
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
        return false;

    return true;
}
/*-------------event-planning/request-for-information-business Start-------------*/
