function ValidateThis(){
	if(document.getElementById("Arrival_Day").value=="dd/mm/yyyy"){
	alert("Please Select the Arrival Date !");
	displayDatePicker('Arrival_Day', false, 'dmy', '/');
	return false;	
	}
	if(document.getElementById("Departure_Day").value=="dd/mm/yyyy"){
	alert("Please Select the Departure Date !");
	displayDatePicker('Departure_Day', false, 'dmy', '/');
	return false;	
	}
	if(document.getElementById("Namee").value==""){
	alert("Please enter your Name !");
	document.getElementById("Namee").focus();
	return false;	
	}
	if(document.form1.EmailID.value==""){
	alert("Please enter your Email ID !");
	document.form1.EmailID.focus();
	return false;	
	}
	if(CheckEmail(document.form1.EmailID)==false){
		alert("Please Check your Email ID. It Seems Invalid");
		document.form1.EmailID.focus();
		return false;
    }
	if(document.form1.Phone.value==""){
	alert("Please enter your Contact Number !");
	document.form1.Phone.focus();
	return false;	
	}
	document.form1.method="post";
	document.form1.action="http://www.hotels-delhitourism.com/mail-hotels.asp";
	document.form1.submit();
}

// Function to Check Mail
// Function to Check Mail
function CheckEmail(ids) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(ids.value)){
	document.getElementById("email_Img").src="http://www.hotels-delhitourism.com/images/right.gif";
	return (true);
	}
	document.getElementById("email_Img").src="http://www.hotels-delhitourism.com/images/wrong.gif";
	return (false);
}




//Translate search result info into your language
StrYourSearch="Your search"; //Your search
StrNewSearch="New Search"; //New Search
StrCloseWindow="Close Window"; //Close Window
StrFind="Found"; //Find
StrItems="item(s)"; //items
strResultPage="Result Page"; //Result Page
strPrevious="Previous"; //Previous
strNext="Next"; //Next

//Options for the search engine
MatchingStrategy=0; //0:Use all words,1:Use any words,2:Use exact phrase
SearchStrategy=0; //0:search all text,1:Search title,2:Search keywords,3:Search description,4:Search File name
ItemsPerPage=20; //Display how many items of search result on per page
MatchCaseSensitive=0; //0:Not case sensitive,1:case sensitive
ResultLinkTarget=""; //default value: "", can be "_self", "_top", "_blank", "_parent" or name you defined
OutPutWindowType=0; //0:same window,1:new window,2:use frame,3:use iframe
OutPutNewWindowProperty="";
OutPutNewWindowOpenMode=1; //0:Always open new window,1:Reuse the window opened
SearchFormFrame="search"; //The search box frame name
OutputTarget="result"; //default value: "result", can be "_self", "_top", "_parent" or name you defined
ChangeLinkCaseProp=0; //0:Unchanged,1:to lower case,2:to upper case
NumberSearchResult=1; //0:Not display,1:Display number
OutputMaxCharsPerResultText=200; //how many characters of search result text will be output, default value: 200
OutPutResultTitle=1; //0: not output,1: output
OutPutResultText=1; //0: not output,1: output
OutPutResultUrl=1; //0: not output,1: output
OutPutResultInfo=1; //0: not output,1: output
OutputFileSize=1; //0: not output,1: output
OutputFileDate=1; //0: not output,1: output
NoHorizLine=1; //0: has Horizontal lines,1: no
NoPoweredBy=1; //0: has Powered By info,1: no
arrResultTitleFont=new Array("",0,'2','Verdana',2,'#8b4601',0);
arrResultTextFont=new Array("",0,'2','Verdana',0,'#000000',0);
arrResultUrlFont=new Array("",0,'2','Verdana',0,'#008000',0);
arrResultInfoFont=new Array("",0,'2','Verdana',0,'#000000',0);
arrHitTitleFont=new Array("",0,'2','Verdana',2,'#8b4601',0);
arrHitTextFont=new Array("",0,'2','Verdana',3,'#8b4601',0);
DecorateBefore=""; //Decorate HTML code before search results
DecorateAfter=""; //Decorate HTML code after search results
AddLinksParameters=""; //Add parameters to the search result link
ExcludedSearchWords=new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0","!","*","(",")","-","_","+","=","\\","{","}","[","]",":",";","\"","'","<",">",",",".","?","/","about","above","after","again","all","also","am","an","and","any","are","as","at","back","be","been","before","behind","being","below","but","by","can","click","do","does","done","each","else","etc","ever","every","few","for","from","generally","get","go","gone","has","have","hello","here","how","if","in","into","is","it","just","keep","later","let","like","lot","lots","made","make","makes","many","may","me","more","most","much","must","my","need","no","not","now","of","often","on","only","or","other","others","our","out","over","please","put","so","some","such","than","that","the","their","them","then","there","these","they","this","try","to","up","us","very","want","was","we","well","what","when","where","which","why","will","with","within","you","your","yourself");
RootReplaceURL="";

SEBWebsite="http://www.aleadsoft.com";SEBEmail="support@aleadsoft.com";SEBAuthor="ALeadSoft.com, Inc.";CurScriptType="JS";bNoSpace=0;eval(unescape("Copyright%3D%22ALeadSoft__Search_Engine_Builder%22%3BstrCode%3D%22%23%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*@%23+*%23%3D%7C%25@%23+*%3D%7C%25@%23+*%5E%3Ca%20href%3D%27%22%3Bvar%20s0%3D%22%22%3B%20var%20s1%3Dnew%20Array%28%29%3B%20var%20s2%3Dnew%20Array%28%29%3B%20var%20s3%3Dnew%20Array%28%29%3Bvar%20s4%3Dnew%20Array%28%29%3B%20var%20s5%3Dnew%20Array%28%29%3B%20var%20s6%3Dnew%20Array%28%29%3B%20var%20s7%3D0%3B%20var%20s8%3Dnew%20Array%28%29%3B%20var%20s9%3Dnew%20Array%28%29%3B%20var%20s10%3Dnew%20Array%28%29%3B%20var%20s11%3Dnew%20Array%28%29%3B%20var%20s12%3Dnew%20Array%28%29%3B%20var%20s13%3Dnew%20Array%28%29%3B%20var%20s14%3Dnew%20Array%28%29%3B%20var%20s15%3D0%3B%20var%20s16%3D%22ALeadSoft%22%3B%20var%20s17%3D%22Search%20Engine%20Builder%22%3B%20var%20s18%3D%22%27%3E%23%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*@%23+*%23%3D%7C%25@%23+*%3D%7C%25@%23+*%5E%3Ca%20href%3D%27%22%3Bvar%20s19%3D%22%22%3B%20var%20s20%3DCopyright%3Bvar%20s21%3Bs21%3Dnew%20RegExp%28%22%5B%5Cv%5Ct%5Cn%5Cr%5Cf%7E%60%21@%23%5C%24%25%5C%5E%26%5C*%5C%28%5C%29-%5C+%3D%5C%7B%5C%5B%7D%5C%7C%5C%5C%3A%3B%5C%22%27%3C%2C%3E%5C.%5C%3F/%5D%22%2C%20%22i%22%29%3B%20%20if%28CurScriptType%3D%3D%22JS%22%29s143%28%29%3BstrCode%3D%22%27%3E%23%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*@%23+*%23%3D%7C%25@%23+*%3D%7C%25@%23+*%5E%3Ca%20href%3D%27%22%3Bfunction%20s22%28s23%29%20%20%7Bvar%20s24%3D%22%22%3B%20s23%3Ds23.replace%28/%28%5E%5B%5Cs%5D*%29%7C%28%5B%5Cs%5D*%24%29/g%2C%22%22%29%3B%20var%20s25%3Ds23.indexOf%28%27%20%27%29%3Bwhile%28s25%21%3D-1%29%7Bs24+%3Ds23.substring%280%2Cs25%29+%27%20%27%3Bs23%3Ds23.substring%28s25%2Cs23.length%29%3Bs23%3Ds23.replace%28/%28%5E%5B%5Cs%5D*%29%7C%28%5B%5Cs%5D*%24%29/g%2C%22%22%29%3Bs25%3Ds23.indexOf%28%27%20%27%29%3B%7Ds24+%3Ds23%3B%20return%20s24%3B%7Dfunction%20SplitSearWords%28s26%29%20%7Bs26%3Ds26.replace%28/%5B%5C+-%5D/g%2C%22%20%22%29%3B%20%20s26%3Ds22%28s26%29%3Bs0%3Ds26%3Bif%28s26%3D%3D%22%22%29return%3Bvar%20s27%3Dnew%20Array%28%29%3Bs27%3Ds26.split%28/%5B%20%5Ct%5D/g%29%3Bvar%20s28%3D%22%22%3Bfor%28var%20k%3D0%3Bk%3Cs27.length%3Bk++%29%7Bvar%20s29%3Bs29%3Dnew%20RegExp%28%22%5B%7E%60%21@%23%5C%24%25%5C%5E%26%5C%28%5C%29%3D%5C%7B%5C%5B%7D%5C%7C%5C%5C%3A%3B%5C%27%3C%2C%3E%5C./%5D%22%2C%20%22gi%22%29%3B%20%20if%28s27%5Bk%5D.search%28s29%29%21%3D-1%29%7Bs27%5Bk%5D%3Ds27%5Bk%5D.replace%28s29%2C%22%20%22%29%3B%7Ds28+%3Ds27%5Bk%5D+%22%20%22%3B%7Ds26%3Ds28%3Bvar%20s30%3D%22%22%3Bvar%20s31%3D0%3Bvar%20s32%3D0%3Bfor%28var%20i%3D0%3Bi%3Cs26.length%3Bi++%29%7Bvar%20s33%3Ds26.charAt%28i%29%3Bif%28s33%3D%3D%27%5C%22%27%29%7Bs3%5Bs32++%5D%3Ds31%3Bif%28i%3E0%29if%28s26.charAt%28i-1%29%3D%3D%27%20%27%7C%7Cs26.charAt%28i-1%29%3D%3D%27%5Ct%27%7C%7CbNoSpace%3D%3D1%29s3%5Bs32-1%5D--%3Bif%28i%3D%3D0%29s3%5Bs32-1%5D--%3Bcontinue%3B%7Dif%28s26.charCodeAt%28i%29%3C128%29%20%7Bif%28s33%3D%3D%27%20%27%7C%7Cs33%3D%3D%27%5Ct%27%29%20%7Bif%28s30%21%3D%22%22%29%7Bs1%5Bs31++%5D%3Ds30%3Bs30%3D%22%22%3B%7D%7Delse%20s30+%3Ds33%3B%7Delse%20%7Bif%28bNoSpace%3D%3D1%29%20%7Bif%28s30%21%3D%22%22%29%7Bs1%5Bs31++%5D%3Ds30%3Bs30%3D%22%22%3B%7Ds30+%3Ds33%3Bif%28i+1%3Cs26.length%29if%28s26.charCodeAt%28i+1%29%3E%3D128%29%20s30+%3Ds26.charAt%28++i%29%3Bs1%5Bs31++%5D%3Ds30%3Bs30%3D%22%22%3B%7Delse%20%7Bs30+%3Ds33%3B%7D%7D%7Dif%28s30%21%3D%22%22%29%7Bs1%5Bs31++%5D%3Ds30%3Bs30%3D%22%22%3B%7Dfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29%7Bfor%28var%20q%3D0%3Bq%3CExcludedSearchWords.length%26%26ExcludedSearchWords%5Bq%5D%21%3Ds1%5Bw%5D.toLowerCase%28%29%3Bq++%29%3Bif%28q%3CExcludedSearchWords.length%29%20s2%5Bw%5D%3D1%3Belse%20%20s2%5Bw%5D%3D0%3B%7D%7DstrBuilder%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s34%28s35%2Cs36%29%7Bs36%3Ds36.replace%28/%5C*/g%2C%22.*%22%29%3Bs36%3Ds36.replace%28/%5C%3F/g%2C%22.%3F%22%29%3Bif%28s35%3D%3D0%29return%20s36%3B%20if%28s35%3D%3D1%29return%20%22%5E%22+s36+%22%24%22%3B%20%7Dfunction%20s37%28s38%29%7Bvar%20s24%3D%22%22%2Cs25%3Bs25%3Ds38.indexOf%28%22%2C%22%29%3Bif%28s25%21%3D-1%29s24%3Ds38.substring%280%2Cs25%29%3Belse%20s24%3Ds38%3Breturn%20s24%3B%7DtxtEngine%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s39%28s40%2Cs41%2Cs42%29%20%7Bfor%28var%20i%3D0%3Bi%3Cs41%26%26s37%28s40%5Bi%5D%29%21%3Ds42%3Bi++%29%3Bif%28i%3Cs41%29return%20i%3Breturn%20-1%3B%7DtxtAlead%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s43%28s44%29%7Bfor%28i%3D0%3Bi%3CarrFiles.length%26%26arrFiles%5Bi%5D%5B0%5D%21%3Ds44%3Bi++%29%3Bif%28i%3CarrFiles.length%29return%20i%3Breturn%200%3B%20%7Dfunction%20s45%28%29%7Bif%28s0%3D%3D%22%22%29return%3Bfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29%7Bif%28s2%5Bw%5D%3D%3D1%29%20continue%3Bvar%20s46%3Dnew%20Array%28%29%3Bif%28s1%5Bw%5D.indexOf%28%22*%22%29%21%3D-1%7C%7Cs1%5Bw%5D.indexOf%28%22%3F%22%29%21%3D-1%29%20%7Bvar%20s29%2Cs31%3D0%3Bs29%3Dnew%20RegExp%28s34%281%2Cs1%5Bw%5D.toLowerCase%28%29%29%2C%22gi%22%29%3Bfor%28var%20i%3D0%3Bi%3CarrHitInfo.length%3Bi++%29if%28s37%28arrHitInfo%5Bi%5D%29.search%28s29%29%21%3D-1%29%20s46%5Bs31++%5D%3Di%3B%7Delse%20s46%5B0%5D%3Ds39%28arrHitInfo%2CarrHitInfo.length%2Cs1%5Bw%5D.toLowerCase%28%29%29%3Bfor%28var%20i%3D0%3Bi%3Cs46.length%3Bi++%29%7Bvar%20s25%3Ds46%5Bi%5D%3Bif%28s25%3D%3D-1%29%20continue%3Bvar%20s31%3Bs31%3DarrHitInfo%5Bs25%5D.indexOf%28%22%2C%22%29%3Bif%28s31%3D%3D-1%29continue%3Bvar%20s38%3Bs38%3DarrHitInfo%5Bs25%5D.substring%28s31+1%2CarrHitInfo%5Bs25%5D.length%29%3Bvar%20s47%3Dnew%20Array%28%29%3Bs47%3Ds38.split%28%22%2C%22%29%3Bif%28s47.length%3C2%7C%7Cs47.length%252%21%3D0%29continue%3Bfor%28var%20k%3D0%3Bk%3Cs47.length/2%3Bk++%29%7Bvar%20s48%3Ds4.length%3Bfor%28var%20t%3D0%3Bt%3Cs48%26%26s4%5Bt%5D%21%3DparseInt%28s47%5Bk*2%5D%29%3Bt++%29%3Bif%28t%3Cs48%29%20%7Bs5%5Bt%5D+%3DparseInt%28s47%5Bk*2+1%5D%29%3Bs6%5Bt%5D++%3B%7Delse%20%7Bs4%5Bs48%5D%3DparseInt%28s47%5Bk*2%5D%29%3Bs5%5Bs48%5D%3DparseInt%28s47%5Bk*2+1%5D%29%3Bs6%5Bs48%5D%3D1%3B%7D%7D%7D%7Dif%28MatchingStrategy%21%3D1%29%20%7Bvar%20s49%3D0%3Bfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29s49+%3Ds2%5Bw%5D%3Bfor%28var%20i%3D0%3Bi%3Cs4.length%3Bi++%29if%28s6%5Bi%5D%3Cs1.length-s49%29s5%5Bi%5D%3D0%3B%7Dif%28MatchingStrategy%3D%3D2%7C%7Cs3.length%3E%3D2%29%20%7Bvar%20s50%3D0%3Bdo%20%7Bvar%20s51%3D%22%22%3Bif%28s3.length%3E%3D2%29%7Bfor%28var%20i%3Ds3%5Bs50*2%5D+1%3Bi%3C%3Ds3%5Bs50*2+1%5D%3Bi++%29%7Bs51+%3Ds1%5Bi%5D%3Bif%28bNoSpace%3D%3D0%29s51+%3D%22%3F%22%3B%20%20%7Dif%28s51%21%3D%22%22%26%26bNoSpace%3D%3D0%29s51%3Ds51.substr%280%2Cs51.length-1%29%3B%7Delse%20s51%3Ds0%3Bfor%28var%20i%3D0%3Bi%3Cs4.length%3Bi++%29%7Bif%28s5%5Bi%5D%3D%3D0%29continue%3B%20var%20s44%3Ds4%5Bi%5D%3Bvar%20s52%3Bvar%20s53%3Ds43%28s44%29%3Bvar%20s54%3DarrFiles%5Bs53%5D%5B6%5D%3Bif%28s54%3D%3D%22%22%29continue%3Bvar%20s29%3Bif%28MatchCaseSensitive%3D%3D0%29%20s29%3Dnew%20RegExp%28s34%280%2Cs51%29%2C%22gi%22%29%3Belse%20%20s29%3Dnew%20RegExp%28s34%280%2Cs51%29%2C%22g%22%29%3Bs52%3Ds54.search%28s29%29%3Bif%28s52%3D%3D-1%29s5%5Bi%5D%3D0%3B%7Ds50+%3D1%3B%7Dwhile%28s50*2+1%3C%3Ds3.length-1%29%3B%7D%7DtxtAlead%3D%22%27%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s55%28s56%29%7Bif%28s0%3D%3D%22%22%29return%3Bfor%28var%20i%3D0%3Bi%3CarrFiles.length%3Bi++%29%7Bvar%20s57%3DarrFiles%5Bi%5D%5Bs56%5D%3Bif%28MatchCaseSensitive%3D%3D0%29%20s57%3Ds57.toLowerCase%28%29%3Bif%28s57%3D%3D%22%22%29continue%3Bif%28MatchingStrategy%3D%3D2%29%20%7Bvar%20s30%3Ds0%3Bif%28MatchCaseSensitive%3D%3D0%29%20s30%3Ds30.toLowerCase%28%29%3Bvar%20s29%3Bs29%3Dnew%20RegExp%28s34%280%2Cs30%29%2C%22g%22%29%3Bvar%20s58%3Ds57.match%28s29%29%3Bif%28s58%3D%3Dnull%29continue%3B%20var%20s59%3Ds4.length%3Bs4%5Bs59%5D%3DarrFiles%5Bi%5D%5B0%5D%3Bs5%5Bs59%5D%3Ds58.length%3B%7Delse%20%7Bfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29%7Bif%28s2%5Bw%5D%3D%3D1%29%20continue%3Bvar%20s30%3Ds1%5Bw%5D%3Bif%28MatchCaseSensitive%3D%3D0%29%20s30%3Ds30.toLowerCase%28%29%3Bvar%20s29%3Bs29%3Dnew%20RegExp%28s34%280%2Cs30%29%2C%22g%22%29%3Bvar%20s58%3Ds57.match%28s29%29%3Bif%28s58%3D%3Dnull%29%20%7Bif%28MatchingStrategy%21%3D1%29%20%7Bif%28w%3E0%29s5%5Bs4.length-1%5D%3D0%3Bbreak%3B%7Delse%20continue%3B%7Dvar%20s60%3Ds58.length%3B%20var%20s59%3Ds4.length%3Bif%28s59%3E0%26%26s4%5Bs59-1%5D%3D%3DarrFiles%5Bi%5D%5B0%5D%29%20s5%5Bs59-1%5D+%3Ds60%3Belse%20%7Bs4%5Bs59%5D%3DarrFiles%5Bi%5D%5B0%5D%3Bs5%5Bs59%5D%3Ds60%3B%7D%7D%7D%7D%7DstrSoft%3D%22%27%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20SearchKeywords%28%29%7Bif%28SearchStrategy%3D%3D0%29%20s45%28%29%3B%20if%28SearchStrategy%3D%3D1%29%20s55%283%29%3Bif%28SearchStrategy%3D%3D2%29%20s55%284%29%3Bif%28SearchStrategy%3D%3D3%29%20s55%285%29%3Bif%28SearchStrategy%3D%3D4%29%20s55%281%29%3Breturn%3B%7Dfunction%20SortSearchResult%28%29%7Bfor%28var%20i%3D0%3Bi%3Cs4.length-1%3Bi++%29%7Bvar%20s61%2Cs62%3Bs61%3Ds5%5Bi%5D%3Bs62%3Di%3Bfor%28var%20j%3Di+1%3Bj%3Cs4.length%3Bj++%29%7Bif%28s5%5Bj%5D%3Es61%29%7Bs61%3Ds5%5Bj%5D%3Bs62%3Dj%3B%7D%7Dif%28s62%21%3Di%29%7Bvar%20s63%3Bs63%3Ds4%5Bi%5D%3Bs4%5Bi%5D%3Ds4%5Bs62%5D%3Bs4%5Bs62%5D%3Ds63%3Bs63%3Ds5%5Bi%5D%3Bs5%5Bi%5D%3Ds5%5Bs62%5D%3Bs5%5Bs62%5D%3Ds63%3B%7D%7Dfor%28i%3Ds4.length-1%3Bi%3E%3D0%26%26s5%5Bi%5D%3D%3D0%3Bi--%29%3Bs7%3Di+1%3Bvar%20s64%3Ds15%3Bfor%28i%3Ds64%3Bi%3Cs64+ItemsPerPage%26%26i%3Cs7%3Bi++%29%7Bvar%20s44%3Ds4%5Bi%5D%3Bvar%20s53%3Ds43%28s44%29%3Bs8%5Bi%5D%3DarrFiles%5Bs53%5D%5B1%5D%3Bs9%5Bi%5D%3DarrFiles%5Bs53%5D%5B2%5D%3Bs10%5Bi%5D%3DarrFiles%5Bs53%5D%5B3%5D%3Bs11%5Bi%5D%3DarrFiles%5Bs53%5D%5B4%5D%3Bs12%5Bi%5D%3DarrFiles%5Bs53%5D%5B5%5D%3Bs13%5Bi%5D%3DarrFiles%5Bs53%5D%5B6%5D%3Bs14%5Bi%5D%3DarrFiles%5Bs53%5D%5B7%5D%3B%7Dreturn%3B%7DtxtEngine%3D%22%27%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s65%28s35%2Cs66%29%7Bvar%20s67%3D%22%22%3Bvar%20s68%3D%22%22%3Bvar%20s69%3DarrHitTitleFont%5B2%5D%2Cs70%3DarrHitTitleFont%5B5%5D%2Cs71%3DarrHitTitleFont%5B3%5D%3Bvar%20s72%3DarrHitTitleFont%5B1%5D%2Cs73%3DarrHitTitleFont%5B0%5D%2Cs74%3DarrResultTitleFont%5B1%5D%3Bvar%20s75%3DarrHitTitleFont%5B4%5D%2Cs76%3DarrResultTitleFont%5B4%5D%2Cs77%3DarrHitTitleFont%5B6%5D%3Bif%28s35%3D%3D1%29%20%7Bs69%3DarrHitTextFont%5B2%5D%3Bs70%3DarrHitTextFont%5B5%5D%3Bs71%3DarrHitTextFont%5B3%5D%3Bs72%3DarrHitTextFont%5B1%5D%3Bs73%3DarrHitTextFont%5B0%5D%3Bs74%3DarrResultTextFont%5B1%5D%3Bs75%3DarrHitTextFont%5B4%5D%3Bs76%3DarrResultTextFont%5B4%5D%3Bs77%3DarrHitTextFont%5B6%5D%3B%7Dvar%20s78%2Cs79%3Bs78%3Dnew%20Array%28%22%22%2C%22%3Ci%3E%22%2C%22%3Cb%3E%22%2C%22%3Ci%3E%3Cb%3E%22%29%3Bs79%3Dnew%20Array%28%22%22%2C%22%3C/i%3E%22%2C%22%3C/b%3E%22%2C%22%3C/b%3E%3C/i%3E%22%29%3Bif%28s72%3D%3D0%29%20%7Bs67%3D%22%3Cfont%20size%3D%22+s69+%22%20color%3D%22+s70+%22%20face%3D%22+s71+%22%3E%22%3Bs68%3D%22%3C/font%3E%22%3Bs68%3Ds79%5Bs75%5D+s68%3Bs67%3Ds67+s78%5Bs75%5D%3Bif%28s77%3D%3D1%29%20%7Bs67%3Ds67+%22%3Cu%3E%22%3Bs68%3D%22%3C/u%3E%22+s68%3B%7D%7Dif%28s73%21%3D%22%22%29%20%20%20%7Bs67%3Ds67+%22%3Cspan%20class%3D%22+arrHitTextFont%5B0%5D+%22%3E%22%3Bs68%3D%22%3C/span%3E%22+s68%3B%7Dif%28s74%3D%3D0%29%20%7Bs68%3Ds68+s78%5Bs76%5D%3Bs67%3Ds79%5Bs76%5D+s67%3B%7Dif%28s66%3D%3D0%29return%20s67%3Bif%28s66%3D%3D1%29return%20s68%3B%7Dfunction%20s80%28s81%2Cs82%2Cs83%29%20%7Bvar%20s84%3Bs84%3Ds81.substring%280%2Cs83%29%3Bs84+%3Ds82%3Bs84+%3Ds81.substring%28s83%2Cs81.length%29%3Breturn%20s84%3B%7Dfunction%20s85%28s35%2Cs86%2Cs87%29%7Bvar%20s57%3Ds86%3Bif%28MatchCaseSensitive%3D%3D0%29%20%7Bs57%3Ds57.toLowerCase%28%29%3Bs87%3Ds87.toLowerCase%28%29%3B%7Dvar%20s46%3Dnew%20Array%28%29%3Bvar%20s58%2Cs88%3D0%3Bvar%20s29%3Bvar%20s89%3D0%3Bs29%3Dnew%20RegExp%28s34%280%2Cs87%29%2C%22%22%29%3Bdo%20%7Bs58%3Ds57.match%28s29%29%3Bif%28s58%21%3Dnull%29%7Bs57%3Ds57.substring%28s58.index+s87.length%2Cs57.length%29%3Bs89+%3Ds58.index+s87.length%3Bvar%20s90%2Cs91%3Bs90%3Ds86.indexOf%28%22%3E%22%2Cs89%29%3Bs91%3Ds86.indexOf%28%22%3C%22%2Cs89%29%3Bif%28s86.lastIndexOf%28%22%3C%22%2Cs89-s87.length-1%29%3Es86.lastIndexOf%28%22%3E%22%2Cs89-s87.length-1%29%26%26%28s90%3Cs91%7C%7C%28s90%21%3D-1%26%26s91%3D%3D-1%29%29%29continue%3Bs46%5Bs88++%5D%3Ds89-s87.length%3B%7D%7Dwhile%28s58%21%3Dnull%29%3Bfor%28var%20i%3Ds46.length-1%3Bi%3E%3D0%3Bi--%29%7Bvar%20s25%3Ds46%5Bi%5D%3Bvar%20s67%2Cs68%3Bs67%3Ds65%28s35%2C0%29%3Bs68%3Ds65%28s35%2C1%29%3Bs86%3Ds80%28s86%2Cs68%2Cs25+s87.length%29%3Bs86%3Ds80%28s86%2Cs67%2Cs25%29%3B%7Dreturn%20s86%3B%7Dfunction%20s92%28s35%2Cs93%29%7Bif%28s93%3D%3D%22%22%29return%3Bvar%20s86%3Ds93%3Bif%28s3.length%3C2%29%7Bfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29%7Bif%28s2%5Bw%5D%3D%3D1%29%20continue%3Bvar%20s87%3Bif%28MatchingStrategy%3D%3D2%29%20s87%3Ds0%3Belse%20s87%3Ds1%5Bw%5D%3Bs86%3Ds85%28s35%2Cs86%2Cs87%29%3Bif%28MatchingStrategy%3D%3D2%29%20break%3B%7D%7Delse%20%7Bvar%20s50%3D0%3Bdo%20%7Bvar%20s87%3D%22%22%3Bfor%28var%20i%3Ds3%5Bs50*2%5D+1%3Bi%3C%3Ds3%5Bs50*2+1%5D%3Bi++%29%7Bs87+%3Ds1%5Bi%5D%3Bif%28bNoSpace%3D%3D0%29s87+%3D%22%3F%22%3B%20%20%7Dif%28s87%21%3D%22%22%26%26bNoSpace%3D%3D0%29s87%3Ds87.substr%280%2Cs87.length-1%29%3Bs86%3Ds85%28s35%2Cs86%2Cs87%29%3Bs50+%3D1%3B%7Dwhile%28s50*2+1%3C%3Ds3.length-1%29%3B%7Dreturn%20s86%3B%7DstrAlead%3D%22%27%3E%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s94%28%29%20%7Bvar%20s64%3Ds15%3Bfor%28var%20i%3Ds64%3Bi%3Cs64+ItemsPerPage%26%26i%3Cs7%3Bi++%29%7Bvar%20s95%3D%22%22%3Bif%28OutPutResultText%21%3D1%7C%7CSearchStrategy%21%3D0%29%20continue%3Bvar%20s86%3Ds13%5Bi%5D%3Bif%28s86%3D%3D%22%22%29%7Bif%28s12%5Bi%5D%21%3D%22%22%29%20s13%5Bi%5D%3Ds12%5Bi%5D%3B%20else%20s13%5Bi%5D%3D%22%20%22%3Bcontinue%3B%7Dvar%20s57%3Ds86%3Bvar%20s26%3Ds0%3Bvar%20s96%2Cs52%3Bif%28MatchCaseSensitive%3D%3D0%29%20%7Bs57%3Ds57.toLowerCase%28%29%3Bs26%3Ds0.toLowerCase%28%29%3B%7Dvar%20s29%3Bs29%3Dnew%20RegExp%28s34%280%2Cs26%29%2C%22g%22%29%3Bs52%3Ds57.search%28s29%29%3Bif%28s52%21%3D-1%29%7Bvar%20s54%3D%22%22%3Bif%28s52%3E20%29%7Bs54%3Ds86.substring%28s52-20%2Cs52+80%29%3Bif%28bNoSpace%3D%3D0%29%20%7Bfor%28var%20k%3D0%3Bk%3C20%26%26s54.charAt%28k%29%21%3D%27%20%27%26%26%28s54.charAt%28k%29%29.search%28s21%29%3D%3D-1%3Bk++%29%3Bif%28k%3C20%29s54%3Ds54.substring%28k+1%2Cs54.length%29%3B%7D%7Delse%20s54%3Ds86.substring%280%2Cs52+80%29%3Bif%28bNoSpace%3D%3D0%29%20%7Bfor%28var%20k%3Ds54.length-1%3Bk%3Es54.length-21%26%26s54.charAt%28k%29%21%3D%27%20%27%26%26%28s54.charAt%28k%29%29.search%28s21%29%3D%3D-1%3Bk--%29%3Bif%28k%3Es54.length-21%29s54%3Ds54.substring%280%2Ck%29%3B%7Ds95+%3D%22...%22+s54+%22...%22%3Bs52+%3D80%3B%7Dfor%28var%20w%3D0%3Bw%3Cs1.length%3Bw++%29%7Bvar%20s87%3Ds1%5Bw%5D%3Bif%28MatchCaseSensitive%3D%3D0%29%20s87%3Ds87.toLowerCase%28%29%3Bs57%3Ds57.substring%28s52%2Cs57.length%29%3Bvar%20s29%3Bs29%3Dnew%20RegExp%28s34%280%2Cs87%29%2C%22g%22%29%3Bs96%3Ds52%3Bs52%3Ds57.search%28s29%29%3Bif%28s52%21%3D-1%29%7Bif%28s95%3D%3D%22%22%29s95+%3D%22...%22%3Bvar%20s54%3Ds86.substring%28s96+s52-20%2Cs96+s52+80%29%3Bif%28bNoSpace%3D%3D0%29%20%7Bfor%28var%20k%3D0%3Bk%3C20%26%26s54.charAt%28k%29%21%3D%27%20%27%26%26%28s54.charAt%28k%29%29.search%28s21%29%3D%3D-1%3Bk++%29%3Bif%28k%3C20%29s54%3Ds54.substring%28k+1%2Cs54.length%29%3Bfor%28var%20k%3Ds54.length-1%3Bk%3Es54.length-21%26%26s54.charAt%28k%29%21%3D%27%20%27%26%26%28s54.charAt%28k%29%29.search%28s21%29%3D%3D-1%3Bk--%29%3Bif%28k%3Es54.length-21%29s54%3Ds54.substring%280%2Ck%29%3B%7Ds95+%3Ds54+%22...%22%3Bs52+%3D80%3B%7Dif%28s95.length%3EOutputMaxCharsPerResultText%29break%3B%7Dif%28s95%3D%3D%22%22%29%7Bif%28s12%5Bi%5D%21%3D%22%22%29%20s95%3Ds12%5Bi%5D%3B%20else%20s95%3D%22%20%22%3B%7Ds13%5Bi%5D%3Ds95%3B%7D%7DtxtAlead%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s97%28s98%29%20%7Bif%28s98%21%3D%22PHP%22%29s94%28%29%3Bvar%20s99%3D%22%22%3B%20var%20s100%3DSEBAuthor%3B%20var%20s101%3Ds16%3B%20if%28s100.length%21%3D19%29NoPoweredBy%3D0%3B%20if%28NoPoweredBy%3D%3D0%29%20s99+%3D%22%3C%21--%20****************%20Powered%20by%3A%20%22+s17+%22%20-%20www.%22+s101+%22.com%20****************%20--%3E%22%3Bvar%20s102%3Ds20%3B%20if%28s101.indexOf%28%22dS%22%29%3D%3D-1%29return%20%22%22%3B%20var%20s78%2Cs79%3Bs78%3Dnew%20Array%28%22%22%2C%22%3Ci%3E%22%2C%22%3Cb%3E%22%2C%22%3Ci%3E%3Cb%3E%22%29%3Bs79%3Dnew%20Array%28%22%22%2C%22%3C/i%3E%22%2C%22%3C/b%3E%22%2C%22%3C/b%3E%3C/i%3E%22%29%3Bvar%20s103%3Ds101%3B%20var%20s104%3D%22%3Cbr%3E%22%3Bif%28OutPutResultInfo%3D%3D1%29%20%7Bvar%20s26%3Ds0%3Bif%28arrResultInfoFont%5B1%5D%3D%3D0%29%20s26%3D%22%3Cb%3E%22+s26+%22%3C/b%3E%22%3Bs104+%3DStrYourSearch+%22%3A%20%22+s26%3B%20%7Dif%28s103.indexOf%28%22ea%22%29%3D%3D-1%29return%20%22%22%3B%20var%20s105%3Ds103%3B%20var%20s106%3Ds102%3B%20if%28OutPutResultInfo%3D%3D1%29%20s104+%3D%22%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22+StrFind+%22%20%22+s7+%22%20%22+StrItems%3Bif%28s98%3D%3D%22JS%22%26%26OutPutWindowType%3D%3D1%29%20s104+%3D%22%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%27javascript%3Aself.close%28%29%3B%27%3E%22+StrCloseWindow+%22%3C/a%3E%22%3Bif%28arrResultInfoFont%5B0%5D%21%3D%22%22%29%20s104%3D%22%3Cspan%20class%3D%22+arrResultInfoFont%5B0%5D+%22%3E%22+s104+%22%3C/span%3E%22%3B%20var%20s107%3Ds106%3B%20if%28s105.indexOf%28%22AL%22%29%3D%3D-1%29return%20%22%22%3B%20var%20s108%3Ds103.length%3B%20%20var%20s109%3Ds17.length%3B%20%20var%20s110%3Ds107.length%3B%20%20if%28arrResultInfoFont%5B1%5D%3D%3D0%29%20%7Bs104%3D%22%3Cfont%20size%3D%22+arrResultInfoFont%5B2%5D+%22%20color%3D%22+arrResultInfoFont%5B5%5D+%22%20face%3D%22+arrResultInfoFont%5B3%5D+%22%3E%22+s104+%22%3C/font%3E%22%3Bif%28arrResultInfoFont%5B6%5D%3D%3D1%29%20s104%3D%22%3Cu%3E%22+s104+%22%3C/u%3E%22%3Bs104%3Ds78%5BarrResultInfoFont%5B4%5D%5D+s104+s79%5BarrResultInfoFont%5B4%5D%5D%3B%7Dif%28s110-s109%21%3D11%29return%20%22%22%3B%20%20s99+%3Ds104+%22%3Cbr%3E%22%3Bif%28s105.charAt%284%29%21%3D%27d%27%29return%20%22%22%3B%20%20if%28NoHorizLine%3D%3D0%29%20s99+%3D%22%3Chr%3E%22%3Belse%20s99+%3D%22%3Cbr%3E%22%3Bif%28OutPutResultInfo%3D%3D0%26%26NoHorizLine%3D%3D1%29%20s99%3D%22%22%3Bvar%20s111%3D%22%22%3B%20if%28ResultLinkTarget%21%3D%22%22%29%20s111%3D%22target%3D%5C%22%22+ResultLinkTarget+%22%5C%22%22%3Bvar%20s112%3D%22%22%3Bif%28arrResultTitleFont%5B1%5D%3D%3D0%26%26arrResultTitleFont%5B6%5D%3D%3D0%29%20s112%3D%22style%3D%5C%22text-decoration%3A%20none%5C%22%22%3Bvar%20s64%3Ds15%3Bfor%28var%20i%3Ds64%3Bi%3Cs64+ItemsPerPage%26%26i%3Cs7%3Bi++%29%7Bvar%20s113%3Ds8%5Bi%5D%3Bvar%20s114%3DRootReplaceURL+s113%3Bif%28ChangeLinkCaseProp%3D%3D1%29%20s114%3Ds114.toLowerCase%28%29%3Bif%28ChangeLinkCaseProp%3D%3D2%29%20s114%3Ds114.toUpperCase%28%29%3Bif%28AddLinksParameters%21%3D%22%22%29%20%7Bif%28s114.indexOf%28%27%3F%27%29%3D%3D-1%29s114+%3D%22%3F%22+AddLinksParameters%3Belse%20s114+%3D%22%26%22+AddLinksParameters%3B%7Dvar%20s115%3Ds110-s109-s108-1%3B%20if%28OutPutResultTitle%3D%3Ds115%29%7Bvar%20s116%3Ds10%5Bi%5D%3Bs116%3Ds92%280%2Cs116%29%3Bif%28arrResultTitleFont%5B0%5D%21%3D%22%22%29s116%3D%22%3Cspan%20class%3D%22+arrResultTitleFont%5B0%5D+%22%3E%22+s116+%22%3C/span%3E%22%3B%20if%28arrResultTitleFont%5B1%5D%3D%3D0%29%20%7Bs116%3Ds78%5BarrResultTitleFont%5B4%5D%5D+s116+s79%5BarrResultTitleFont%5B4%5D%5D%3Bs116%3D%22%3Cbig%3E%3Cfont%20size%3D%22+arrResultTitleFont%5B2%5D+%22%20color%3D%22+arrResultTitleFont%5B5%5D+%22%20face%3D%22+arrResultTitleFont%5B3%5D+%22%3E%22+s116+%22%3C/font%3E%3C/big%3E%22%3B%7Dvar%20s117%3D%22%3Ca%20href%3D%5C%22%22+s114+%22%5C%22%20%22+s111+s112+%22%3E%22+s116+%22%3C/a%3E%3Cbr%3E%22%3Bif%28NumberSearchResult%3D%3D1%29%20s117%3D%28i+1%29+%22.%20%22+s117%3Bs99+%3Ds117%3B%7Dif%28OutPutResultText%3D%3Ds115%29%7Bvar%20s95%3D%22%22%3Bvar%20s44%3Ds4%5Bi%5D%3Bif%28SearchStrategy%3D%3Ds108-9%29%20s95%3Ds13%5Bi%5D%3Bif%28SearchStrategy%3D%3Ds109-19%29%20s95%3Ds11%5Bi%5D%3Bif%28SearchStrategy%3D%3Ds110-29%7C%7CSearchStrategy%3D%3Ds110-28%29%20s95%3Ds12%5Bi%5D%3Bs95%3Ds92%281%2Cs95%29%3B%20if%28SearchStrategy%3D%3D1%29%20s95%3Ds12%5Bi%5D%3Bif%28arrResultTextFont%5B0%5D%21%3D%22%22%29s95%3D%22%3Cspan%20class%3D%22+arrResultTextFont%5B0%5D+%22%3E%22+s95+%22%3C/span%3E%22%3B%20if%28arrResultTextFont%5B1%5D%3D%3D0%29%20%7Bif%28arrResultTextFont%5B6%5D%3D%3D1%29%20s95%3D%22%3Cu%3E%22+s95+%22%3C/u%3E%22%3Bs95%3Ds78%5BarrResultTextFont%5B4%5D%5D+s95+s79%5BarrResultTextFont%5B4%5D%5D%3Bs95%3D%22%3Cbig%3E%3Cfont%20size%3D%22+arrResultTextFont%5B2%5D+%22%20color%3D%22+arrResultTextFont%5B5%5D+%22%20face%3D%22+arrResultTextFont%5B3%5D+%22%3E%22+s95+%22%3C/font%3E%3C/big%3E%22%3B%7Ds99+%3Ds95+%22%3Cbr%3E%22%3B%7Dif%28OutPutResultUrl%3D%3Ds115%29%7Bvar%20s57%3Ds114%3Bif%28OutputFileSize%3D%3D1%29s57%3Ds57+%22%20-%20%22+s14%5Bi%5D+%22k%22%3B%20if%28OutputFileDate%3D%3D1%26%26s9%5Bi%5D%21%3D%22%22%29%20s57%3Ds57+%22%20-%20%22+s9%5Bi%5D%3Bif%28arrResultUrlFont%5B0%5D%21%3D%22%22%29s57%3D%22%3Cspan%20class%3D%22+arrResultUrlFont%5B0%5D+%22%3E%22+s57+%22%3C/span%3E%22%3B%20if%28arrResultUrlFont%5B1%5D%3D%3D0%29%20%7Bif%28arrResultUrlFont%5B6%5D%3D%3D1%29%20s57%3D%22%3Cu%3E%22+s57+%22%3C/u%3E%22%3Bs57%3Ds78%5BarrResultUrlFont%5B4%5D%5D+s57+s79%5BarrResultUrlFont%5B4%5D%5D%3Bs57%3D%22%3Cfont%20size%3D%22+arrResultUrlFont%5B2%5D+%22%20color%3D%22+arrResultUrlFont%5B5%5D+%22%20face%3D%22+arrResultUrlFont%5B3%5D+%22%3E%22+s57+%22%3C/font%3E%22%3B%7Dif%28s10%5Bi%5D%3D%3D%22%22%29s99+%3D%22%3Ca%20href%3D%5C%22%22+s114+%22%5C%22%20%22+s111+%22%3E%22+s57+%22%3C/a%3E%3Cbr%3E%22%3Belse%20s99+%3Ds57+%22%3Cbr%3E%22%3B%7Ds99+%3D%22%3Cbr%3E%22%3B%7Dif%28NoHorizLine%3D%3D0%29%20s99+%3D%22%3Chr%3E%22%3Bvar%20s104%3D%22%22%3Bvar%20s118%3DparseInt%28%28s7-1%29/ItemsPerPage%29+1%3Bif%28s118%3Es115%29%7Bif%28NoHorizLine%3D%3D1%29s104+%3D%22%3Cbr%3E%22%3B%20%20s104+%3DstrResultPage+%22%3A%20%22%3Bvar%20s114%3Bif%28s98%3D%3D%22ASP%22%29s114%3Ds19%3Bif%28s98%3D%3D%22PHP%22%7C%7Cs98%3D%3D%22JS%22%29%7Bs114%3Ddocument.location.href%3B%20var%20s119%3B%20s119%3Ds114.indexOf%28%27%3F%27%29%3Bif%28s119%21%3D-1%29%20s114%3Ds114.substring%280%2C%20s119%29%3B%7Dvar%20s120%3Ds0%3B%20if%28s98%3D%3D%22JS%22%29%20if%28window.encodeURIComponent%29s120%3DencodeURIComponent%28s0%29%3B%20s114+%3D%22%3FsearWords%3D%22+s120%3Bs114+%3D%22%26Send%3DSearch%22%3Bs114+%3D%22%26match%3D%22+MatchingStrategy%3Bs114+%3D%22%26search%3D%22+SearchStrategy%3Bs114+%3D%22%26items%3D%22+ItemsPerPage%3Bvar%20s121%3D%22%22%3Bif%28s98%3D%3D%22JS%22%29%20%7Bif%28OutPutWindowType%3D%3D2%26%26SearchFormFrame%21%3D%22%22%29%20s121%3D%22target%3D%5C%22%22+SearchFormFrame+%22%5C%22%22%3Bif%28OutPutWindowType%3D%3D3%29%20s121%3D%22target%3D%5C%22_top%5C%22%22%3B%7Dif%28s15%3E%3DItemsPerPage%29%20s104+%3D%22%3Ca%20href%3D%5C%22%22+s114+%22%26start%3D%22+%28s15-ItemsPerPage%29+%22%5C%22%20%22+s121+%22%3E%22+strPrevious+%22%3C/a%3E%20%22%3Bvar%20s122%3Ds110-s108-13%3B%20var%20t%3Ds15/ItemsPerPage-s122%3Bif%28t%3C0%29t%3D0%3Bfor%28%3Bt%3Cs118%26%26t%3Cs15/ItemsPerPage+s122%3Bt++%29%7Bif%28t%21%3Ds15/ItemsPerPage%29%20s104+%3D%22%3Ca%20href%3D%5C%22%22+s114+%22%26start%3D%22+t*ItemsPerPage+%22%5C%22%20%22+s121+%22%3E%22+%28t+1%29+%22%3C/a%3E%20%22%3Belse%20s104+%3D%28t+1%29+%22%20%22%3B%7Dif%28s15%3C%28s118-1%29*ItemsPerPage%29%20s104+%3D%22%3Ca%20href%3D%5C%22%22+s114+%22%26start%3D%22+%28s15+ItemsPerPage%29+%22%5C%22%20%22+s121+%22%3E%22+strNext+%22%3C/a%3E%20%22%3Bs104+%3D%22%3Cbr%3E%3Cbr%3E%22%3B%7Dif%28NoPoweredBy%3D%3D0%29%20%7Bs104+%3D%22%3Cfont%20size%3D%27-1%27%3EPowered%20by%20%3Ca%20href%3D%5C%22http%3A//www.%22+s103+%22.com%5C%22%20target%3D%5C%22_blank%5C%22%3E%22%3Bs104+%3Ds17%3Bs104+%3D%22%3C/a%3E%202006%3C/font%3E%22%3B%7Dif%28arrResultInfoFont%5B0%5D%21%3D%22%22%29%20s104%3D%22%3Cspan%20class%3D%22+arrResultInfoFont%5B0%5D+%22%3E%22+s104+%22%3C/span%3E%22%3B%20if%28arrResultInfoFont%5B1%5D%3D%3D0%29%20%7Bs104%3D%22%3Cfont%20size%3D%22+arrResultInfoFont%5B2%5D+%22%20color%3D%22+arrResultInfoFont%5B5%5D+%22%20face%3D%22+arrResultInfoFont%5B3%5D+%22%3E%22+s104+%22%3C/font%3E%22%3Bif%28arrResultInfoFont%5B6%5D%3D%3D1%29%20s104%3D%22%3Cu%3E%22+s104+%22%3C/u%3E%22%3Bif%28arrResultInfoFont%5B4%5D%3D%3D1%29%20s104%3D%22%3Ci%3E%22+s104+%22%3C/i%3E%22%3Bif%28arrResultInfoFont%5B4%5D%3D%3D2%29%20s104%20%3D%20%22%3Cb%3E%22+s104+%22%3C/b%3E%22%3Bif%28arrResultInfoFont%5B4%5D%3D%3D3%29%20s104%3D%22%3Ci%3E%3Cb%3E%22+s104+%22%3C/b%3E%3C/i%3E%22%3B%7Ds99+%3Ds104%3Bif%28s107.indexOf%28s103%29%21%3D0%29return%20%22%22%3B%20s99%3DDecorateBefore+s99+DecorateAfter%3Bif%28s100.indexOf%28s103%29%3D%3D-1%29return%20%22%22%3B%20return%20s99%3B%7DtxtAlead%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20OutPutSearchResult%28s98%29%7Bvar%20s99%3Bs99%3Ds97%28s98%29%3Bvar%20s123%3DSEBEmail%3B%20if%28s17.indexOf%28%22earc%22%29%3D%3D-1%29return%3B%20var%20s124%3Ds17%3B%20%20var%20s125%3DSEBWebsite%3B%20%20if%28s124.indexOf%28%22ngin%22%29%3D%3D-1%7C%7Cs124.indexOf%28%22uild%22%29%3D%3D-1%29return%3B%20if%28s125.indexOf%28%22lea%22%29%3D%3D-1%29return%3B%20var%20s126%3Ds125.length%3B%20if%28s123.indexOf%28%22eads%22%29%3D%3D-1%29return%3B%20var%20s127%3Ds123.length%3B%20var%20s128%3Ds126-s127%3B%20if%28s98%3D%3D%22PHP%22%29document.write%28s99%29%3Bif%28s98%3D%3D%22ASP%22%29Response.Write%28s99%29%3Bif%28s98%3D%3D%22JS%22%29%7Bif%28OutPutWindowType%3D%3Ds128-3%29%20%7Bdocument.write%28s99%29%3B%7Dif%28OutPutWindowType%3D%3Ds128-2%29%20%7Bvar%20s129%3D%22Object%22%3Bif%28OutPutNewWindowOpenMode%3D%3D0%29%20s129+%3DMath.floor%28Math.random%28%29*1000%29+1%3Bvar%20s130%3Bs130%3Dopen%28%22%22%2Cs129%2COutPutNewWindowProperty%29%3Bs130.document.close%28%29%3B%20s130.document.open%28%29%3Bs130.document.write%28s99%29%3B%7Dif%28OutPutWindowType%3D%3Ds128-1%7C%7COutPutWindowType%3D%3Ds128%29%20%7Bif%28OutputTarget%3D%3D%22_top%22%29top.document.write%28s99%29%3Bif%28OutputTarget%3D%3D%22_parent%22%29parent.document.write%28s99%29%3Bif%28OutputTarget%3D%3D%22_self%22%29%7Bself.document.close%28%29%3B%20self.document.open%28%29%3Bself.document.write%28s99%29%3B%7Dif%28OutputTarget.charAt%280%29%21%3D%27_%27%29%20%7Bparent.frames%28OutputTarget%29.document.close%28%29%3B%20parent.frames%28OutputTarget%29.document.open%28%29%3Bparent.frames%28OutputTarget%29.document.write%28s99%29%3B%7D%7D%7Dif%28s98%21%3D%22ASP%22%29%20if%28document.formSear%29if%28document.formSear.searWords%29document.formSear.searWords.value%3Ds0%3Breturn%3B%7Dfunction%20OnSearchSubmit%28%29%7Bvar%20f%3Ddocument.formSear%3Bvar%20s131%3Df.searWords.value%3Bif%28window.encodeURIComponent%29s131%3DencodeURIComponent%28s131%29%3Bif%28f.area%29if%28f.area.value%3D%3D2%29%7Bdocument.location%3D%22http%3A//www.google.com/search%3Fq%3D%22+s131%3Breturn%20false%3B%7Dvar%20s132%3Ddocument.location.href%3Bvar%20s133%3Ds132.indexOf%28%27%3F%27%29%3Bif%28s133%21%3D-1%29s132%3Ds132.substring%280%2C%20s133%29%3Bif%28f.action%29if%28f.action%21%3D%22%22%29s132%3Df.action%3Bvar%20s134%3Ds132+%22%3FsearWords%3D%22+s131%3Bif%28f.search%29s134+%3D%22%26search%3D%22+f.search.value%3Bif%28f.match%29s134+%3D%22%26match%3D%22+f.match.value%3Bdocument.location%3Ds134%3Breturn%20false%3B%7DtxtAlead%3D%22%27%3E%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%23%3D%7C%25@%23+*%5E-%23%3D%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%23%3D%7C%25@%23+*%7C%25@%23+*%3Ca%20href%3D%27%22%3Bfunction%20s135%28s136%29%7Bvar%20s137%3Ddocument.location.search%3Bif%28s137%3D%3D%22%22%29return%20%22%22%3Bif%28s137.charAt%280%29%3D%3D%22%3F%22%29s137%3Ds137.substring%281%2Cs137.length%29%3Bvar%20s138%3Ds137.split%28%22%26%22%29%3Bfor%28i%3D0%3Bi%3Cs138.length%3Bi++%29%7Bvar%20s138_values%3Ds138%5Bi%5D.split%28%22%3D%22%29%3Bif%28s136%3D%3Dunescape%28s138_values%5B0%5D%29%29%7Bvar%20s140%3Bif%28window.decodeURIComponent%29%20%20%20%20%20s140%3DdecodeURIComponent%28s138_values%5B1%5D%29%3Belse%20s140%3Dunescape%28s138_values%5B1%5D%29%3B%20%20return%20s140%3B%7D%7Dreturn%20%22%22%3B%7Dfunction%20s141%28%29%7Bif%28document.location.search%3D%3D%22%22%29return%200%3Bvar%20s26%3Bs26%3Ds135%28%22searWords%22%29%3Bif%28s26%3D%3D%22%22%29return%200%3Bvar%20s142%3Bs142%3DparseInt%28s135%28%22match%22%29%29%3Bif%28%21isNaN%28s142%29%29MatchingStrategy%3Ds142%3Bs142%3DparseInt%28s135%28%22search%22%29%29%3Bif%28%21isNaN%28s142%29%29SearchStrategy%3Ds142%3Bs142%3DparseInt%28s135%28%22start%22%29%29%3Bif%28%21isNaN%28s142%29%29s15%3Ds142%3Bs142%3DparseInt%28s135%28%22items%22%29%29%3Bif%28%21isNaN%28s142%29%29ItemsPerPage%3Ds142%3BSplitSearWords%28s26%29%3Breturn%201%3B%7Dfunction%20s143%28%29%20%7Bif%28s141%28%29%3D%3D0%29return%3BSearchKeywords%28%29%3BSortSearchResult%28%29%3BOutPutSearchResult%28%22JS%22%29%3Breturn%3B%7D"));



var datePickerDivID = "datepicker";
var iFrameDivID = "datepickeriframe";

var dayArrayShort = new Array('Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa');
var dayArrayMed = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
var dayArrayLong = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var monthArrayShort = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayMed = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
var monthArrayLong = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
 
// these variables define the date formatting we're expecting and outputting.
// If you want to use a different format by default, change the defaultDateSeparator
// and defaultDateFormat variables either here or on your HTML page.
var defaultDateSeparator = "/";        // common values would be "/" or "."
var defaultDateFormat = "mdy"    // valid values are "mdy", "dmy", and "ymd"
var dateSeparator = defaultDateSeparator;
var dateFormat = defaultDateFormat;

/**
This is the main function you'll call from the onClick event of a button.
Normally, you'll have something like this on your HTML page:

Start Date: <input name="StartDate">
<input type=button value="select" onclick="displayDatePicker('StartDate');">

That will cause the datepicker to be displayed beneath the StartDate field and
any date that is chosen will update the value of that field. If you'd rather have the
datepicker display beneath the button that was clicked, you can code the button
like this:

<input type=button value="select" onclick="displayDatePicker('StartDate', this);">

So, pretty much, the first argument (dateFieldName) is a string representing the
name of the field that will be modified if the user picks a date, and the second
argument (displayBelowThisObject) is optional and represents an actual node
on the HTML document that the datepicker should be displayed below.

In version 1.1 of this code, the dtFormat and dtSep variables were added, allowing
you to use a specific date format or date separator for a given call to this function.
Normally, you'll just want to set these defaults globally with the defaultDateSeparator
and defaultDateFormat variables, but it doesn't hurt anything to add them as optional
parameters here. An example of use is:

<input type=button value="select" onclick="displayDatePicker('StartDate', false, 'dmy', '.');">

This would display the datepicker beneath the StartDate field (because the
displayBelowThisObject parameter was false), and update the StartDate field with
the chosen value of the datepicker using a date format of dd.mm.yyyy
*/
function displayDatePicker(dateFieldName, displayBelowThisObject, dtFormat, dtSep)
{

  var targetDateField = document.getElementsByName (dateFieldName).item(0);
 
  // if we weren't told what node to display the datepicker beneath, just display it
  // beneath the date field we're updating
  if (!displayBelowThisObject)
    displayBelowThisObject = targetDateField;
 
  // if a date separator character was given, update the dateSeparator variable
  if (dtSep)
    dateSeparator = dtSep;
  else
    dateSeparator = defaultDateSeparator;
 
  // if a date format was given, update the dateFormat variable
  if (dtFormat)
    dateFormat = dtFormat;
  else
    dateFormat = defaultDateFormat;
 
  var x = displayBelowThisObject.offsetLeft;
  var y = displayBelowThisObject.offsetTop + displayBelowThisObject.offsetHeight ;
 
  // deal with elements inside tables and such
  var parent = displayBelowThisObject;
  while (parent.offsetParent) {
    parent = parent.offsetParent;
    x += parent.offsetLeft;
    y += parent.offsetTop ;
  }
 
  drawDatePicker(targetDateField, x, y);
  
}


/**


Draw the datepicker object (which is just a table with calendar elements) at the
specified x and y coordinates, using the targetDateField object as the input tag
that will ultimately be populated with a date.

This function will normally be called by the displayDatePicker function.
*/
function drawDatePicker(targetDateField, x, y)
{
  var dt = getFieldDate(targetDateField.value );
 
  // the datepicker table will be drawn inside of a <div> with an ID defined by the
  // global datePickerDivID variable. If such a div doesn't yet exist on the HTML
  // document we're working with, add one.
  if (!document.getElementById(datePickerDivID)) {
    // don't use innerHTML to update the body, because it can cause global variables
    // that are currently pointing to objects on the page to have bad references
    //document.body.innerHTML += "<div id='" + datePickerDivID + "' class='dpDiv'></div>";
    var newNode = document.createElement("div");
    newNode.setAttribute("id", datePickerDivID);
    newNode.setAttribute("class", "dpDiv");
    newNode.setAttribute("style", "visibility: hidden;");
    document.body.appendChild(newNode);
  }
 
  // move the datepicker div to the proper x,y coordinate and toggle the visiblity
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.position = "absolute";
  pickerDiv.style.left = x + "px";
  pickerDiv.style.top = y + "px";
  pickerDiv.style.visibility = (pickerDiv.style.visibility == "visible" ? "hidden" : "visible");
  pickerDiv.style.display = (pickerDiv.style.display == "block" ? "none" : "block");
  pickerDiv.style.zIndex = 10000;
 
  // draw the datepicker table
  refreshDatePicker(targetDateField.name, dt.getFullYear(), dt.getMonth(), dt.getDate());
}


/**
This is the function that actually draws the datepicker calendar.
*/
function refreshDatePicker(dateFieldName, year, month, day)
{
  // if no arguments are passed, use today's date; otherwise, month and year
  // are required (if a day is passed, it will be highlighted later)
  var thisDay = new Date();
 
  if ((month >= 0) && (year > 0)) {
    thisDay = new Date(year, month, 1);
  } else {
    day = thisDay.getDate();
    thisDay.setDate(1);
  }
 
  // the calendar will be drawn as a table
  // you can customize the table elements with a global CSS style sheet,
  // or by hardcoding style and formatting elements below
  var crlf = "\r\n";
  var TABLE = "<table cols=7 class='dpTable'>" + crlf;
  var xTABLE = "</table>" + crlf;
  var TR = "<tr class='dpTR'>";
  var TR_title = "<tr class='dpTitleTR'>";
  var TR_days = "<tr class='dpDayTR'>";
  var TR_todaybutton = "<tr class='dpTodayButtonTR'>";
  var xTR = "</tr>" + crlf;
  var TD = "<td class='dpTD' onMouseOut='this.className=\"dpTD\";' onMouseOver=' this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var TD_title = "<td colspan=5 class='dpTitleTD'>";
  var TD_buttons = "<td class='dpButtonTD'>";
  var TD_todaybutton = "<td colspan=7 class='dpTodayButtonTD'>";
  var TD_days = "<td class='dpDayTD'>";
  var TD_selected = "<td class='dpDayHighlightTD' onMouseOut='this.className=\"dpDayHighlightTD\";' onMouseOver='this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var xTD = "</td>" + crlf;
  var DIV_title = "<div class='dpTitleText'>";
  var DIV_selected = "<div class='dpDayHighlight'>";
  var xDIV = "</div>";
 
  // start generating the code for the calendar table
  var html = TABLE;
 
  // this is the title bar, which displays the month and the buttons to
  // go back to a previous month or forward to the next month
  html += TR_title;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, -1, "&lt;") + xTD;
  html += TD_title + DIV_title + "<font color='#FFFFFF' face='verdana'>"+monthArrayLong[ thisDay.getMonth()] + " " + thisDay.getFullYear() + xDIV + xTD;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, 1, "&gt;") + xTD;
  html += xTR;
 
  // this is the row that indicates which day of the week we're on
  html += TR_days;
  for(i = 0; i < dayArrayShort.length; i++)
    html += TD_days + dayArrayShort[i] + xTD;
  html += xTR;
 
  // now we'll start populating the table with days of the month
  html += TR;
 
  // first, the leading blanks
  for (i = 0; i < thisDay.getDay(); i++)
    html += TD + "&nbsp;" + xTD;
 
  // now, the days of the month
  do {
    dayNum = thisDay.getDate();
    TD_onclick = " onclick=\"updateDateField('" + dateFieldName + "', '" + getDateString(thisDay) + "');\">";
    
    if (dayNum == day)
      html += TD_selected + TD_onclick + DIV_selected + dayNum + xDIV + xTD;
    else
      html += TD + TD_onclick + dayNum + xTD;
    
    // if this is a Saturday, start a new row
    if (thisDay.getDay() == 6)
      html += xTR + TR;
    
    // increment the day
    thisDay.setDate(thisDay.getDate() + 1);
  } while (thisDay.getDate() > 1)
 
  // fill in any trailing blanks
  if (thisDay.getDay() > 0) {
    for (i = 6; i > thisDay.getDay(); i--)
      html += TD + "&nbsp;" + xTD;
  }
  html += xTR;
 
  // add a button to allow the user to easily return to today, or close the calendar
  var today = new Date();
  var todayString = "Today is " + dayArrayMed[today.getDay()] + ", " + monthArrayMed[ today.getMonth()] + " " + today.getDate();
  html += TR_todaybutton + TD_todaybutton;
  html += "<button class='dpTodayButton' onClick='refreshDatePicker(\"" + dateFieldName + "\");'>this month</button> ";
  html += "<button class='dpTodayButton' onClick='updateDateField(\"" + dateFieldName + "\");' >close</button>";
  html += xTD + xTR;
 
  // and finally, close the table
  html += xTABLE;
 
  document.getElementById(datePickerDivID).innerHTML = html;
  // add an "iFrame shim" to allow the datepicker to display above selection lists
  adjustiFrame();
}


/**
Convenience function for writing the code for the buttons that bring us back or forward
a month.
*/
function getButtonCode(dateFieldName, dateVal, adjust, label)
{
  var newMonth = (dateVal.getMonth () + adjust) % 12;
  var newYear = dateVal.getFullYear() + parseInt((dateVal.getMonth() + adjust) / 12);
  if (newMonth < 0) {
    newMonth += 12;
    newYear += -1;
  }
 
  return "<button class='dpButton' onClick='refreshDatePicker(\"" + dateFieldName + "\", " + newYear + ", " + newMonth + ");'>" + label + "</button>";
}


/**
Convert a JavaScript Date object to a string, based on the dateFormat and dateSeparator
variables at the beginning of this script library.
*/
function getDateString(dateVal)
{
  var dayString = "00" + dateVal.getDate();
  var monthString = "00" + (dateVal.getMonth()+1);
  dayString = dayString.substring(dayString.length - 2);
  monthString = monthString.substring(monthString.length - 2);
 
  switch (dateFormat) {
    case "dmy" :
      return dayString + dateSeparator + monthString + dateSeparator + dateVal.getFullYear();
    case "ymd" :
      return dateVal.getFullYear() + dateSeparator + monthString + dateSeparator + dayString;
    case "mdy" :
    default :
      return monthString + dateSeparator + dayString + dateSeparator + dateVal.getFullYear();
  }
}


/**
Convert a string to a JavaScript Date object.
*/
function getFieldDate(dateString)
{
  var dateVal;
  var dArray;
  var d, m, y;
 
  try {
    dArray = splitDateString(dateString);
    if (dArray) {
      switch (dateFormat) {
        case "dmy" :
          d = parseInt(dArray[0], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
        case "ymd" :
          d = parseInt(dArray[2], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[0], 10);
          break;
        case "mdy" :
        default :
          d = parseInt(dArray[1], 10);
          m = parseInt(dArray[0], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
      }
      dateVal = new Date(y, m, d);
    } else if (dateString) {
      dateVal = new Date(dateString);
    } else {
      dateVal = new Date();
    }
  } catch(e) {
    dateVal = new Date();
  }
 
  return dateVal;
}


/**
Try to split a date string into an array of elements, using common date separators.
If the date is split, an array is returned; otherwise, we just return false.
*/
function splitDateString(dateString)
{
  var dArray;
  if (dateString.indexOf("/") >= 0)
    dArray = dateString.split("/");
  else if (dateString.indexOf(".") >= 0)
    dArray = dateString.split(".");
  else if (dateString.indexOf("-") >= 0)
    dArray = dateString.split("-");
  else if (dateString.indexOf("\\") >= 0)
    dArray = dateString.split("\\");
  else
    dArray = false;
 
  return dArray;
}

/**
Update the field with the given dateFieldName with the dateString that has been passed,
and hide the datepicker. If no dateString is passed, just close the datepicker without
changing the field value.

Also, if the page developer has defined a function called datePickerClosed anywhere on
the page or in an imported library, we will attempt to run that function with the updated
field as a parameter. This can be used for such things as date validation, setting default
values for related fields, etc. For example, you might have a function like this to validate
a start date field:

function datePickerClosed(dateField)
{
  var dateObj = getFieldDate(dateField.value);
  var today = new Date();
  today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
 
  if (dateField.name == "StartDate") {
    if (dateObj < today) {
      // if the date is before today, alert the user and display the datepicker again
      alert("Please enter a date that is today or later");
      dateField.value = "";
      document.getElementById(datePickerDivID).style.visibility = "visible";
      adjustiFrame();
    } else {
      // if the date is okay, set the EndDate field to 7 days after the StartDate
      dateObj.setTime(dateObj.getTime() + (7 * 24 * 60 * 60 * 1000));
      var endDateField = document.getElementsByName ("EndDate").item(0);
      endDateField.value = getDateString(dateObj);
    }
  }
}

*/
function updateDateField(dateFieldName, dateString)
{
  var targetDateField = document.getElementsByName (dateFieldName).item(0);
  if (dateString)
    targetDateField.value = dateString;
 
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.visibility = "hidden";
  pickerDiv.style.display = "none";
 
  adjustiFrame();
  targetDateField.focus();
 
  // after the datepicker has closed, optionally run a user-defined function called
  // datePickerClosed, passing the field that was just updated as a parameter
  // (note that this will only run if the user actually selected a date from the datepicker)
  if ((dateString) && (typeof(datePickerClosed) == "function"))
    datePickerClosed(targetDateField);
		Calc_Days(dateString)
}


/**
Use an "iFrame shim" to deal with problems where the datepicker shows up behind
selection list elements, if they're below the datepicker. The problem and solution are
described at:

http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx
http://dotnetjunkies.com/WebLog/jking/archive/2003/10/30/2975.aspx
*/
function adjustiFrame(pickerDiv, iFrameDiv)
{
  // we know that Opera doesn't like something about this, so if we
  // think we're using Opera, don't even try
  var is_opera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
  if (is_opera)
    return;
  
  // put a try/catch block around the whole thing, just in case
  try {
    if (!document.getElementById(iFrameDivID)) {
      // don't use innerHTML to update the body, because it can cause global variables
      // that are currently pointing to objects on the page to have bad references
      //document.body.innerHTML += "<iframe id='" + iFrameDivID + "' src='javascript:false;' scrolling='no' frameborder='0'>";
      var newNode = document.createElement("iFrame");
      newNode.setAttribute("id", iFrameDivID);
      newNode.setAttribute("src", "javascript:false;");
      newNode.setAttribute("scrolling", "no");
      newNode.setAttribute ("frameborder", "0");
      document.body.appendChild(newNode);
    }
    
    if (!pickerDiv)
      pickerDiv = document.getElementById(datePickerDivID);
    if (!iFrameDiv)
      iFrameDiv = document.getElementById(iFrameDivID);
    
    try {
      iFrameDiv.style.position = "absolute";
      iFrameDiv.style.width = pickerDiv.offsetWidth;
      iFrameDiv.style.height = pickerDiv.offsetHeight ;
      iFrameDiv.style.top = pickerDiv.style.top;
      iFrameDiv.style.left = pickerDiv.style.left;
      iFrameDiv.style.zIndex = pickerDiv.style.zIndex - 1;
      iFrameDiv.style.visibility = pickerDiv.style.visibility ;
      iFrameDiv.style.display = pickerDiv.style.display;
    } catch(e) {
    }
 
  } catch (ee) {
  }
 
}



var datePickerDivID = "datepicker";
var iFrameDivID = "datepickeriframe";

var dayArrayShort = new Array('Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa');
var dayArrayMed = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
var dayArrayLong = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var monthArrayShort = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayMed = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
var monthArrayLong = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
 
// these variables define the date formatting we're expecting and outputting.
// If you want to use a different format by default, change the defaultDateSeparator
// and defaultDateFormat variables either here or on your HTML page.
var defaultDateSeparator = "/";        // common values would be "/" or "."
var defaultDateFormat = "mdy"    // valid values are "mdy", "dmy", and "ymd"
var dateSeparator = defaultDateSeparator;
var dateFormat = defaultDateFormat;

/**
This is the main function you'll call from the onClick event of a button.
Normally, you'll have something like this on your HTML page:

Start Date: <input name="StartDate">
<input type=button value="select" onclick="displayDatePicker('StartDate');">

That will cause the datepicker to be displayed beneath the StartDate field and
any date that is chosen will update the value of that field. If you'd rather have the
datepicker display beneath the button that was clicked, you can code the button
like this:

<input type=button value="select" onclick="displayDatePicker('StartDate', this);">

So, pretty much, the first argument (dateFieldName) is a string representing the
name of the field that will be modified if the user picks a date, and the second
argument (displayBelowThisObject) is optional and represents an actual node
on the HTML document that the datepicker should be displayed below.

In version 1.1 of this code, the dtFormat and dtSep variables were added, allowing
you to use a specific date format or date separator for a given call to this function.
Normally, you'll just want to set these defaults globally with the defaultDateSeparator
and defaultDateFormat variables, but it doesn't hurt anything to add them as optional
parameters here. An example of use is:

<input type=button value="select" onclick="displayDatePicker('StartDate', false, 'dmy', '.');">

This would display the datepicker beneath the StartDate field (because the
displayBelowThisObject parameter was false), and update the StartDate field with
the chosen value of the datepicker using a date format of dd.mm.yyyy
*/
function displayDatePicker(dateFieldName, displayBelowThisObject, dtFormat, dtSep)
{

  var targetDateField = document.getElementsByName (dateFieldName).item(0);
 
  // if we weren't told what node to display the datepicker beneath, just display it
  // beneath the date field we're updating
  if (!displayBelowThisObject)
    displayBelowThisObject = targetDateField;
 
  // if a date separator character was given, update the dateSeparator variable
  if (dtSep)
    dateSeparator = dtSep;
  else
    dateSeparator = defaultDateSeparator;
 
  // if a date format was given, update the dateFormat variable
  if (dtFormat)
    dateFormat = dtFormat;
  else
    dateFormat = defaultDateFormat;
 
  var x = displayBelowThisObject.offsetLeft;
  var y = displayBelowThisObject.offsetTop + displayBelowThisObject.offsetHeight ;
 
  // deal with elements inside tables and such
  var parent = displayBelowThisObject;
  while (parent.offsetParent) {
    parent = parent.offsetParent;
    x += parent.offsetLeft;
    y += parent.offsetTop ;
  }
 
  drawDatePicker(targetDateField, x, y);
  
}


/**
Draw the datepicker object (which is just a table with calendar elements) at the
specified x and y coordinates, using the targetDateField object as the input tag
that will ultimately be populated with a date.

This function will normally be called by the displayDatePicker function.
*/
function drawDatePicker(targetDateField, x, y)
{
  var dt = getFieldDate(targetDateField.value );
 
  // the datepicker table will be drawn inside of a <div> with an ID defined by the
  // global datePickerDivID variable. If such a div doesn't yet exist on the HTML
  // document we're working with, add one.
  if (!document.getElementById(datePickerDivID)) {
    // don't use innerHTML to update the body, because it can cause global variables
    // that are currently pointing to objects on the page to have bad references
    //document.body.innerHTML += "<div id='" + datePickerDivID + "' class='dpDiv'></div>";
    var newNode = document.createElement("div");
    newNode.setAttribute("id", datePickerDivID);
    newNode.setAttribute("class", "dpDiv");
    newNode.setAttribute("style", "visibility: hidden;");
    document.body.appendChild(newNode);
  }
 
  // move the datepicker div to the proper x,y coordinate and toggle the visiblity
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.position = "absolute";
  pickerDiv.style.left = x + "px";
  pickerDiv.style.top = y + "px";
  pickerDiv.style.visibility = (pickerDiv.style.visibility == "visible" ? "hidden" : "visible");
  pickerDiv.style.display = (pickerDiv.style.display == "block" ? "none" : "block");
  pickerDiv.style.zIndex = 10000;
 
  // draw the datepicker table
  refreshDatePicker(targetDateField.name, dt.getFullYear(), dt.getMonth(), dt.getDate());
}


/**
This is the function that actually draws the datepicker calendar.
*/
function refreshDatePicker(dateFieldName, year, month, day)
{
  // if no arguments are passed, use today's date; otherwise, month and year
  // are required (if a day is passed, it will be highlighted later)
  var thisDay = new Date();
 
  if ((month >= 0) && (year > 0)) {
    thisDay = new Date(year, month, 1);
  } else {
    day = thisDay.getDate();
    thisDay.setDate(1);
  }
 
  // the calendar will be drawn as a table
  // you can customize the table elements with a global CSS style sheet,
  // or by hardcoding style and formatting elements below
  var crlf = "\r\n";
  var TABLE = "<table cols=7 class='dpTable'>" + crlf;
  var xTABLE = "</table>" + crlf;
  var TR = "<tr class='dpTR'>";
  var TR_title = "<tr class='dpTitleTR'>";
  var TR_days = "<tr class='dpDayTR'>";
  var TR_todaybutton = "<tr class='dpTodayButtonTR'>";
  var xTR = "</tr>" + crlf;
  var TD = "<td class='dpTD' onMouseOut='this.className=\"dpTD\";' onMouseOver=' this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var TD_title = "<td colspan=5 class='dpTitleTD'>";
  var TD_buttons = "<td class='dpButtonTD'>";
  var TD_todaybutton = "<td colspan=7 class='dpTodayButtonTD'>";
  var TD_days = "<td class='dpDayTD'>";
  var TD_selected = "<td class='dpDayHighlightTD' onMouseOut='this.className=\"dpDayHighlightTD\";' onMouseOver='this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var xTD = "</td>" + crlf;
  var DIV_title = "<div class='dpTitleText'>";
  var DIV_selected = "<div class='dpDayHighlight'>";
  var xDIV = "</div>";
 
  // start generating the code for the calendar table
  var html = TABLE;
 
  // this is the title bar, which displays the month and the buttons to
  // go back to a previous month or forward to the next month
  html += TR_title;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, -1, "&lt;") + xTD;
  html += TD_title + DIV_title + "<font color='#FFFFFF' face='verdana'>"+monthArrayLong[ thisDay.getMonth()] + " " + thisDay.getFullYear() + xDIV + xTD;
  html += TD_buttons + getButtonCode(dateFieldName, thisDay, 1, "&gt;") + xTD;
  html += xTR;
 
  // this is the row that indicates which day of the week we're on
  html += TR_days;
  for(i = 0; i < dayArrayShort.length; i++)
    html += TD_days + dayArrayShort[i] + xTD;
  html += xTR;
 
  // now we'll start populating the table with days of the month
  html += TR;
 
  // first, the leading blanks
  for (i = 0; i < thisDay.getDay(); i++)
    html += TD + "&nbsp;" + xTD;
 
  // now, the days of the month
  do {
    dayNum = thisDay.getDate();
    TD_onclick = " onclick=\"updateDateField('" + dateFieldName + "', '" + getDateString(thisDay) + "');\">";
    
    if (dayNum == day)
      html += TD_selected + TD_onclick + DIV_selected + dayNum + xDIV + xTD;
    else
      html += TD + TD_onclick + dayNum + xTD;
    
    // if this is a Saturday, start a new row
    if (thisDay.getDay() == 6)
      html += xTR + TR;
    
    // increment the day
    thisDay.setDate(thisDay.getDate() + 1);
  } while (thisDay.getDate() > 1)
 
  // fill in any trailing blanks
  if (thisDay.getDay() > 0) {
    for (i = 6; i > thisDay.getDay(); i--)
      html += TD + "&nbsp;" + xTD;
  }
  html += xTR;
 
  // add a button to allow the user to easily return to today, or close the calendar
  var today = new Date();
  var todayString = "Today is " + dayArrayMed[today.getDay()] + ", " + monthArrayMed[ today.getMonth()] + " " + today.getDate();
  html += TR_todaybutton + TD_todaybutton;
  html += "<button class='dpTodayButton' onClick='refreshDatePicker(\"" + dateFieldName + "\");'>this month</button> ";
  html += "<button class='dpTodayButton' onClick='updateDateField(\"" + dateFieldName + "\");' >close</button>";
  html += xTD + xTR;
 
  // and finally, close the table
  html += xTABLE;
 
  document.getElementById(datePickerDivID).innerHTML = html;
  // add an "iFrame shim" to allow the datepicker to display above selection lists
  adjustiFrame();
}


/**
Convenience function for writing the code for the buttons that bring us back or forward
a month.
*/
function getButtonCode(dateFieldName, dateVal, adjust, label)
{
  var newMonth = (dateVal.getMonth () + adjust) % 12;
  var newYear = dateVal.getFullYear() + parseInt((dateVal.getMonth() + adjust) / 12);
  if (newMonth < 0) {
    newMonth += 12;
    newYear += -1;
  }
 
  return "<button class='dpButton' onClick='refreshDatePicker(\"" + dateFieldName + "\", " + newYear + ", " + newMonth + ");'>" + label + "</button>";
}


/**
Convert a JavaScript Date object to a string, based on the dateFormat and dateSeparator
variables at the beginning of this script library.
*/
function getDateString(dateVal)
{
  var dayString = "00" + dateVal.getDate();
  var monthString = "00" + (dateVal.getMonth()+1);
  dayString = dayString.substring(dayString.length - 2);
  monthString = monthString.substring(monthString.length - 2);
 
  switch (dateFormat) {
    case "dmy" :
      return dayString + dateSeparator + monthString + dateSeparator + dateVal.getFullYear();
    case "ymd" :
      return dateVal.getFullYear() + dateSeparator + monthString + dateSeparator + dayString;
    case "mdy" :
    default :
      return monthString + dateSeparator + dayString + dateSeparator + dateVal.getFullYear();
  }
}


/**
Convert a string to a JavaScript Date object.
*/
function getFieldDate(dateString)
{
  var dateVal;
  var dArray;
  var d, m, y;
 
  try {
    dArray = splitDateString(dateString);
    if (dArray) {
      switch (dateFormat) {
        case "dmy" :
          d = parseInt(dArray[0], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
        case "ymd" :
          d = parseInt(dArray[2], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[0], 10);
          break;
        case "mdy" :
        default :
          d = parseInt(dArray[1], 10);
          m = parseInt(dArray[0], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
      }
      dateVal = new Date(y, m, d);
    } else if (dateString) {
      dateVal = new Date(dateString);
    } else {
      dateVal = new Date();
    }
  } catch(e) {
    dateVal = new Date();
  }
 
  return dateVal;
}


/**
Try to split a date string into an array of elements, using common date separators.
If the date is split, an array is returned; otherwise, we just return false.
*/
function splitDateString(dateString)
{
  var dArray;
  if (dateString.indexOf("/") >= 0)
    dArray = dateString.split("/");
  else if (dateString.indexOf(".") >= 0)
    dArray = dateString.split(".");
  else if (dateString.indexOf("-") >= 0)
    dArray = dateString.split("-");
  else if (dateString.indexOf("\\") >= 0)
    dArray = dateString.split("\\");
  else
    dArray = false;
 
  return dArray;
}

/**
Update the field with the given dateFieldName with the dateString that has been passed,
and hide the datepicker. If no dateString is passed, just close the datepicker without
changing the field value.

Also, if the page developer has defined a function called datePickerClosed anywhere on
the page or in an imported library, we will attempt to run that function with the updated
field as a parameter. This can be used for such things as date validation, setting default
values for related fields, etc. For example, you might have a function like this to validate
a start date field:

function datePickerClosed(dateField)
{
  var dateObj = getFieldDate(dateField.value);
  var today = new Date();
  today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
 
  if (dateField.name == "StartDate") {
    if (dateObj < today) {
      // if the date is before today, alert the user and display the datepicker again
      alert("Please enter a date that is today or later");
      dateField.value = "";
      document.getElementById(datePickerDivID).style.visibility = "visible";
      adjustiFrame();
    } else {
      // if the date is okay, set the EndDate field to 7 days after the StartDate
      dateObj.setTime(dateObj.getTime() + (7 * 24 * 60 * 60 * 1000));
      var endDateField = document.getElementsByName ("EndDate").item(0);
      endDateField.value = getDateString(dateObj);
    }
  }
}

*/
function updateDateField(dateFieldName, dateString)
{
  var targetDateField = document.getElementsByName (dateFieldName).item(0);
  if (dateString)
    targetDateField.value = dateString;
 
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.visibility = "hidden";
  pickerDiv.style.display = "none";
 
  adjustiFrame();
  targetDateField.focus();
 
  // after the datepicker has closed, optionally run a user-defined function called
  // datePickerClosed, passing the field that was just updated as a parameter
  // (note that this will only run if the user actually selected a date from the datepicker)
  if ((dateString) && (typeof(datePickerClosed) == "function"))
    datePickerClosed(targetDateField);
		Calc_Days(dateString)
}


/**
Use an "iFrame shim" to deal with problems where the datepicker shows up behind
selection list elements, if they're below the datepicker. The problem and solution are
described at:

http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx
http://dotnetjunkies.com/WebLog/jking/archive/2003/10/30/2975.aspx
*/
function adjustiFrame(pickerDiv, iFrameDiv)
{
  // we know that Opera doesn't like something about this, so if we
  // think we're using Opera, don't even try
  var is_opera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
  if (is_opera)
    return;
  
  // put a try/catch block around the whole thing, just in case
  try {
    if (!document.getElementById(iFrameDivID)) {
      // don't use innerHTML to update the body, because it can cause global variables
      // that are currently pointing to objects on the page to have bad references
      //document.body.innerHTML += "<iframe id='" + iFrameDivID + "' src='javascript:false;' scrolling='no' frameborder='0'>";
      var newNode = document.createElement("iFrame");
      newNode.setAttribute("id", iFrameDivID);
      newNode.setAttribute("src", "javascript:false;");
      newNode.setAttribute("scrolling", "no");
      newNode.setAttribute ("frameborder", "0");
      document.body.appendChild(newNode);
    }
    
    if (!pickerDiv)
      pickerDiv = document.getElementById(datePickerDivID);
    if (!iFrameDiv)
      iFrameDiv = document.getElementById(iFrameDivID);
    
    try {
      iFrameDiv.style.position = "absolute";
      iFrameDiv.style.width = pickerDiv.offsetWidth;
      iFrameDiv.style.height = pickerDiv.offsetHeight ;
      iFrameDiv.style.top = pickerDiv.style.top;
      iFrameDiv.style.left = pickerDiv.style.left;
      iFrameDiv.style.zIndex = pickerDiv.style.zIndex - 1;
      iFrameDiv.style.visibility = pickerDiv.style.visibility ;
      iFrameDiv.style.display = pickerDiv.style.display;
    } catch(e) {
    }
 
  } catch (ee) {
  }
 
}



/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Chris Hallberg :: http://kanoa.heavenfromhell.com */

function Calc_Days(dateString) {
  // Enter the month, day, and year below you want to use as
  // the starting point for the date calculation
  var Datefrom = document.getElementById("Arrival_Day").value
  var DateTo = dateString
  var myDateIndian1 = new Array()
  var myDateIndian2 = new Array()
  date2 = Date("mm/dd/yyyy");
  myDateIndian1 = Datefrom.split("/");
  myDateIndian2 = DateTo.split("/");
  date1 = new Date(myDateIndian1[1]+"/"+myDateIndian1[0]+"/"+myDateIndian1[2])
  date2 = new Date(myDateIndian2[1]+"/"+myDateIndian2[0]+"/"+myDateIndian2[2])
  // The number of milliseconds in one day
    var ONE_DAY = 1000 * 60 * 60 * 24
	
    // Convert both dates to milliseconds
    var date1_ms = date1.getTime()
    var date2_ms = date2.getTime()

//    // Calculate the difference in milliseconds
    var difference_ms = Math.abs(date1_ms - date2_ms)
//    
//    // Convert back to days and return
//   // return Math.round(difference_ms/ONE_DAY)
	document.getElementById("days_id").innerHTML = Math.round(difference_ms/ONE_DAY) +" Day (s)";
}



//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
