

function openWindow(win_url, win_name, win_features) {
	var win = window.popup_win
	if (win && !win.closed) {
		win.close()
	}
	window.setTimeout("window.popup_win = window.open('" + win_url + "', '" + win_name + "', '" + win_features + "'); window.popup_win.focus()", 100)
	return false
}


var toggleMode = "list"
var bActive = null;
var targetElement = "";
var wizCounter = 0;

function blink()
{
    var f = document.forms.aspnetForm;    
    var el = f.elements[targetElement];
    
	if (el.className == 'wizardhighlight') 
		el.className = '';
	else 
		el.className = 'wizardhighlight';
	
	if (wizCounter < 5) 
	{
		wizCounter++;
		bActive = setTimeout("blink('');", 400);
	}
	else 
	{
		wizCounter = 0;
	}
	f[targetElement].focus();
}


function toggleEntryMode(strName, strOccupationAreaMultiPositionID, strIdDropDown, strIdInputDesc, bDisableOther) 
{

    var f = document.forms.aspnetForm;   
	
	if (strName == "list") 
	{ 
		//*** Select from list ***
		if(f[strOccupationAreaMultiPositionID] != null)
		{
			if (bDisableOther == "False")
			{
				f[strIdInputDesc].disabled = true;
			 
				f[strIdDropDown].disabled = false;
				SwapSearchMode(strName);
				f[strIdDropDown].focus();
			}
			else {
				if(f[strOccupationAreaMultiPositionID].selectedIndex == 1)
				{	
					//*** Others selected, switch to freetext ***
					f[strIdInputDesc].disabled = false;
					f[strIdDropDown].disabled = true;
					f[strIdInputDesc].value = ""
					strName = "text_other";
					SwapSearchMode(strName);
					f[strIdInputDesc].focus();

				}
				else {
					f[strIdInputDesc].disabled = true;
			 
					f[strIdDropDown].disabled = false;
					SwapSearchMode(strName);
					f[strIdDropDown].focus();
				}
			}
		}
	}
	else 
	{
		f[strIdDropDown].disabled = true;
		f[strIdInputDesc].disabled = false;
		SwapSearchMode(strName);
		f[strIdInputDesc].focus();
	}
	
	return false;
}

function SwapSearchMode(strName) {

	var strTemp;
	var f = document.forms.mainform;   

	if (document.getElementById) {

		//*** Set input mode radio buttons ***
		if (strName == "list") {
			document.getElementById("InputMode1").disabled = false;
			document.getElementById("InputMode1").checked = true;
			document.getElementById("InputMode2").checked = false;							
		}
		else {
			document.getElementById("InputMode1").checked = false;
			document.getElementById("InputMode2").checked = true;
			if (strName == "text_other") {
				document.getElementById("InputMode1").disabled = true;
			}
		}
		
		var ar = document.getElementById("masterdiv").getElementsByTagName("span");

		for (var i=0; i<ar.length; i++) {
			if (ar[i].className == "FreetextEntry") {
				if (strName == "list") {
					strTemp = "none";
				}
				else {
					strTemp = "block";
				}						
			}
			else {
				if (strName == "list") {
					strTemp = "block";
				}
				else {
					strTemp = "none";
				}
			}
			ar[i].style.display = strTemp;
		}	
		
		var listElement = document.getElementById("ListCell");
		var textElement = document.getElementById("TextCell");
		
		if (strName == "list") {
			listElement.className = "rm_tabSelected"
			textElement.className = "rm_tabUnSelected"
		}
		else {
			listElement.className = "rm_tabUnSelected"
			textElement.className = "rm_tabSelected"
		}
		
	}	
	else {
		
		//*** Old fashion way	
		
		//*** Set input mode radio buttons ***
		if (strName == "list") {
			document.all['InputMode1'].disabled = false;		
			document.all['InputMode1'].checked = true;		
			document.all['InputMode2'].checked = false;		
		}
		else {
			document.all['InputMode1'].checked = false;			
			document.all['InputMode2'].checked = true;		
			if (strName == "text_other") {
				document.all['InputMode1'].disabled = true;
			}			
		}
		
		if (strName == "list") {
			if (document.all['FreetextEntry']) {
				//document.all['FreetextEntry'].style = 'block';
			}
			if (document.all['ListEntry']) {
				//document.all['ListEntry'].style = 'none';		
			}			
		}
		else {
			if (document.all['FreetextEntry']) {
				//document.all['FreetextEntry'].style = 'none';
			}
			if (document.all['ListEntry']) {
				//document.all['ListEntry'].style = 'block';		
			}
		}
		
	
	}
}

function highlight(el) 
{
    var f = document.forms.mainform;
	
	if (bActive != null) 
	{
		clearTimeout(bActive);
		bActive = null;
	}
	wizCounter = 0;
	targetElement = el;
	focus();
	blink();
	window.focus();
}

function initializeRMForm() {
	if (document.mainform) {
		document.mainform.reset();
	}
	return true;
}

function limitLength(element, maxLength)
{
    var a = element.value.length;
    if (a > maxLength) 
    {
		alert(g_limitLength1 +  " " + maxLength + " " + g_limitLength2 + " (" + a + ").");
		
		if(element != null && element.id.indexOf('PersonalDescriptionText') > -1)
		    document.getElementById(element.id).focus();
		return false;
    } else {
		return true;
	}
}

function checkYear(itm) 
{
	var yearFilter=/(19|20)([0-9][0-9]){1}/;
	
	if(itm.value.length>0)
	{ 
		if(!yearFilter.test(itm.value))
		{
			alert(g_msgIncorrectYear);
			itm.focus();
			return false;
		}
	}
	return true;
}

function logOut() {

	if (confirm(fdbLogout)) {
		postTo("Logout.asp");
		return true;
	}
	else {
		return false;	
	}	
}

function postTo(url) {
	
	var f = document.forms.mainform;	
	var els = f.elements;
	var els_length = f.length;
	var pattern1 = new RegExp("^select");
	var pattern2 = new RegExp("_Multi");	
	var pattern3 = new RegExp("^textarea");
	
	for (var i=0; i<els_length; i++) 
	{
		var el = els[i]
		
		// Test if type is select and name contains _Multi
		if (pattern1.test(el.type) && pattern2.test(el.name))
		{
			if ((el.value != "-1") && (el.value != "") && (el.value != null)) {
				if (!confirm(fdbMultiEntryBtn)) {
					return false;
				}
				else {
					f.reset();
				}
			}			
		}
		// Limit the size of textarea input
		if ((pattern3.test(el.type)) && (el.value.length > gDescriptionMaxLength)) {
			el.value = el.value.substr(0, gDescriptionMaxLength);
		}
	}
		
	f.action=url;
	f.submit();
	return false;
}

function checkEmail(strURL) {

	var f = document.forms.mainform;
	var email;
	
	var baseURL = gBaseUrl;
	//var baseURL = "http://localhost/";

	if (f.Disclaimer) {
		if (!f.Disclaimer.checked) {
			alert(fdbConfirmEmailDisclaimer);
			return false;
		}
	}		
			
	if (isEmail(f.EMail) && isEmail(f.confirmEMail)) {				
		
		if (f.confirmEMail.value == f.EMail.value) {
			postTo(baseURL + strURL);
			return true;
		}
		else {
			if (f.confirmEMail.value != null) {
				alert(fdbConfirmEmailFailed);
			}
			return false;
		}
	}
	else
	{
		return false;
	}
}

function isEmail(el) {
	var strng = el.value;
	var emailFilter=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
	var strError = "";
		
	if (!(emailFilter.test(strng))) {
		strError = fdbEnterCorrectEmail + "\n";
		alert(strError);
		el.focus();
		return false;		
	}
	return true;	
}

function isInArray(targetString, targetArray) {

	for (var i=0; i<targetArray.length; i++) 
	{		
		if (targetArray[i] == targetString) {
			return i;
		}
	}	
	return -1;
}

function verifyInput(element, strRequiredElements) {

	var RequiredElements = strRequiredElements.split(",");	
	var f = document.forms.aspnetForm;
	var bOK = true;
	
	var sel, tmp;
	var selectionBoxName = element.name.replace(/^btn_/, "");
	var temp = "";
	var c = 0;
	var els = f.elements
	var els_length = els.length
	
	var pattern1 = new RegExp("^" + selectionBoxName);
	var pattern2 = new RegExp("[^0-9]$");
	var pattern3 = new RegExp("_DisplayLabels$");
	var pattern4 = new RegExp("_Desc$");
	
	for (var i=0; i<els_length; i++) 
	{
		var el = els[i]
		
		if (!el.disabled && pattern1.test(el.name) && pattern2.test(el.name) && !pattern3.test(el.name) && !pattern4.test(el.name)) 
		{  
			//alert(el.type);
			sel = el.selectedIndex;		
			if (el.type == "select-one") {			
				if (el.options[sel].value != "" && el.options[sel].value != "-1") {				
					tmp = isInArray(el.name, RequiredElements);							
					if (tmp >= 0) {
						RequiredElements[tmp] = "";
					}
					if (c > 0) {
						temp = temp + ", ";
					}
					if (isNaN(Number(el.options[sel].text))) {
						temp = temp + el.options[sel].text;
						if (f[el.name + "_Desc"]) {
							if (f[el.name + "_Desc"].value != "") {
								temp = temp + " (" + f[el.name + "_Desc"].value + ")";
							}
						}
					}
					else {
						temp = temp + el.options[sel].text + " " + lblYear;
					}
					c++;
				}			
			}
			else {
				//*** To cover up for situation with freetext input only for experience
				if (el.value != "") {				
					tmp = isInArray(el.name, RequiredElements);							
					if (tmp >= 0) {
						RequiredElements[tmp] = "";
					}
					if (c > 0) {
						temp = temp + ", ";
					}
					
					if (f[el.name + "_Desc"]) {
						if (f[el.name + "_Desc"].value != "") {
							temp = temp + f[el.name + "_Desc"].value;
						}
					}
					c++;
				}						
			}
		}
	}
	
	// See if all required elements have been covered
	for (var i=0; i<RequiredElements.length; i++) {
		if (RequiredElements[i] != "") {
			alert(fdbEnterRequiredInfo);
			f[RequiredElements[i]].focus();
			temp = "";
			bOK = false;		
			break;	
		}
	}	

	// Set the display label for the entry
	f[selectionBoxName + "_DisplayLabels"].value = temp;
	
	if (bOK) {		
		return true;
	}
	else {
		return false;
	}
	
}

function addCountryLabelsToPost(selectionbox, strLabelElement) {
	
	var f = document.forms.mainform;
	var sel = selectionbox.selectedIndex;	
	
	if (selectionbox.options[sel].value != "" && selectionbox.options[sel].value != "-1" ) {
		f[strLabelElement].value = selectionbox.options[sel].text;
	}
	else {
		f[strLabelElement].value = "";
	}
}


function getSelectElements(frm, el_name) 
{
	return getFormElements(frm, "select-one", el_name)
}

function getFormElements(frm, el_type, el_name) 
{
	// Create an Array to hold the resultset
	var tmp = new Array()
	
	// Get a reference to the forms elements
	var els = frm.elements
	var els_length = els.length
	
	for (var i=0; i<els_length; i++) 
	{
		var el = els[i]
		
		// Test if type and name matches the search criteria
		//if ((el.type == el_type) && el_name.test(el.name)) 
		if ((el.type == el_type) && el_name.test(el.id)) 
		{
			tmp[tmp.length] = el
		}
	}
	return tmp
}

function clearAllOptions(select_el) 
{
	while (select_el.options.length > 0) 
	{
		select_el.options[0] = null
	}
}

function swapOptions(select_el, opts_list) 
{
	clearAllOptions(select_el)
	var opts = select_el.options
	var has_selected = false

	for (var op in opts_list) 
	{
		// Remove leading underscore-sign ("_") 
		var op_value = op.replace(/^_/, "")
		/*
		* opts_list[op] could be either a string (the option text)
		* or an object with the option name in it's 'txt'-property
		* and the selected status in it's 'def'-property
		*/
		var tmp = opts_list[op]
		var op_txt = (tmp.txt) ? tmp.txt : tmp
		var selected = (tmp.def) ? true : false
		
		if (selected) 
		{
			has_selected = true
		}
		
		opts[opts.length] = new Option(op_txt, op_value, selected, selected)
	}
	
	if(!has_selected) 
	{
		select_el.selectedIndex = 0
	}

	if(select_el.onchange) 
	{
		select_el.onchange()
	}
}

function handleSelectChange(select_el)
{
	var key = select_el.id	
	
	var selected_value = select_el.options[select_el.selectedIndex].value
	var hierarchy = hierarchy_mapping[key]
	var opt_list = hierarchy["_" + selected_value]
	var subselect_name = subselect_name_mapping[key]
  	var sub_selects = getSelectElements(select_el.form, subselect_name)
	for(i=0; i<sub_selects.length; i++)
  	{
		swapOptions(sub_selects[i], opt_list)
  	}
}

function setPageStatus()
{
	document.forms("Vacancies").PageStatus.value = "SEARCH";
}

function verifyFileSuffix()
{
	var f = document.forms.submitApplication;
	var strSuffix;
	
	if (f.fileCVDocument) {
		var el = f.fileCVDocument;	
		strSuffix = el.value.toLowerCase();
		strSuffix = strSuffix.substr(strSuffix.lastIndexOf(".") + 1);

		if ((strSuffix == "")) {
			alert(msgSpecifyUploadFile);			
			el.focus();
			return false;
		}
	
		if ((strSuffix != "doc") && (strSuffix != "rtf") && (strSuffix != "pdf") && (strSuffix != "rtf")) {
			alert(msgIncorrectFileTypeA.replace(/%1/, strSuffix));
			el.focus();
			return false;
		}
	}

	if (f.filePersonalLetter) {
		var el = f.filePersonalLetter;	
		strSuffix = el.value.toLowerCase();
		strSuffix = strSuffix.substr(strSuffix.lastIndexOf(".") + 1);

		if ((strSuffix == "")) {
			alert(msgSpecifyUploadFile);
			el.focus();
			return false;
		}
	
		if ((strSuffix != "doc") && (strSuffix != "rtf") && (strSuffix != "pdf") && (strSuffix != "pdf")) {
			alert(msgIncorrectFileTypeA.replace(/%1/, strSuffix));
			el.focus();
			return false;
		}
		return true;
	}
}

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name) {
	if (!ns4)
		return
	temp=eval(name)
	temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
	temp.onmousedown=gons
	temp.onmousemove=dragns
	temp.onmouseup=stopns
}

function gons(e) {
	temp.captureEvents(Event.MOUSEMOVE)
	nsx=e.x
	nsy=e.y
}

function dragns(e) {
	if (dragswitch==1) 
	{
		temp.moveBy(e.x-nsx,e.y-nsy)
		return false
	}
}

function stopns() {
	temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////


function drag_drop(e) {
	if (ie4&&dragapproved){
		crossobj.style.left=tempx+event.clientX-offsetx
		crossobj.style.top=tempy+event.clientY-offsety
		return false
	}
	else if (ns6&&dragapproved) {
		crossobj.style.left=tempx+e.clientX-offsetx+"px"
		crossobj.style.top=tempy+e.clientY-offsety+"px"
		return false
	}
}

function initializedrag(e) {
	crossobj=ns6? document.getElementById("showimage") : document.all.showimage
	var firedobj=ns6? e.target : event.srcElement
	var topelement=ns6? "html" : document.compatMode && document.compatMode!="BackCompat"? "documentElement" : "body"
	
	while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!="dragbar") {
		firedobj=ns6? firedobj.parentNode : firedobj.parentElement
	}

	if (firedobj.id=="dragbar")	{
		offsetx=ie4? event.clientX : e.clientX
		offsety=ie4? event.clientY : e.clientY

		tempx=parseInt(crossobj.style.left)
		tempy=parseInt(crossobj.style.top)

		dragapproved=true
		document.onmousemove=drag_drop
	}
}

document.onmouseup=new Function("dragapproved=false")

////drag drop functions end here//////
function showbox() {

	crossobj=ns6? document.getElementById("showimage") : document.all.showimage
	if (ie4||ns6)
		crossobj.style.visibility="visible"
	else if (ns4)
		document.showimage.visibility="show"
		
}

function hidebox(strName) {
	crossobj=ns6? document.getElementById("showimage") : document.all.showimage
	if (ie4||ns6)
		crossobj.style.visibility="hidden"
	else if (ns4)
		document.showimage.visibility="hide"
		
	document.cookie="blockInfo_" + strName + "=yes";
	
}

function verifyInputNew(element, strRequiredElements) {

	var RequiredElements = strRequiredElements.split(",");	
	var f = document.forms.aspnetForm;
	var bOK = true;
	
	
	var sel, tmp;
	var selectionBoxName = element.name.replace(/^btn_/, "");
	var temp = "";
	var c = 0;
	var els = f.elements
	var els_length = els.length
	
	var pattern1 = new RegExp("^" + selectionBoxName);
	var pattern2 = new RegExp("[^0-9]$");
	var pattern3 = new RegExp("_DisplayLabels$");
	var pattern4 = new RegExp("_Desc$");
	
	for (var i=0; i<els_length; i++) 
	{
		var el = els[i]

		//if (!el.disabled && pattern1.test(el.name) && pattern2.test(el.name) && !pattern3.test(el.name) && !pattern4.test(el.name)) 
		
		
		{  
			
			sel = el.selectedIndex;		
			if (el.type == "select-one") {
			
				if (el.disabled)
				{
					tmp = isInArray(el.id, RequiredElements);							

					if (tmp >= 0) {
						
						RequiredElements[tmp] = "";
					}
				}
			
				if (el.options[sel].value != "" && el.options[sel].value != "-1") {								
				
					tmp = isInArray(el.id, RequiredElements);							

					if (tmp >= 0) {
						
						RequiredElements[tmp] = "";
					}
					
					if (c > 0) {
						temp = temp + ", ";
					}
					if (isNaN(Number(el.options[sel].text))) {
						temp = temp + el.options[sel].text;
						if (f[el.name + "_Desc"]) {
							if (f[el.name + "_Desc"].value != "") {
								temp = temp + " (" + f[el.name + "_Desc"].value + ")";
							}
						}
					}
					else {
						temp = temp + el.options[sel].text/* + " " + lblYear*/;
					}
					c++;
				}			
			}
			else {
				//*** To cover up for situation with freetext input only for experience
				if (el.value != "") {				
					tmp = isInArray(el.name, RequiredElements);							
					if (tmp >= 0) {
						RequiredElements[tmp] = "";
					}
					if (c > 0) {
						temp = temp + ", ";
					}
					
					if (f[el.name + "_Desc"]) {
						if (f[el.name + "_Desc"].value != "") {
							temp = temp + f[el.name + "_Desc"].value;
						}
					}
					c++;
				}						
			}
		}
	}
	
	// See if all required elements have been covered
	for (var i=0; i<RequiredElements.length; i++) {		
		if (RequiredElements[i] != "") {
			
			alert(fdbEnterRequiredInfo);
			
			f[RequiredElements[i]].focus();
			temp = "";
			bOK = false;		
			break;	
		}
	}	

	// Set the display label for the entry
	//f[selectionBoxName + "_DisplayLabels"].value = temp;
	
	if (bOK) {
		return true;
	}
	else {
		return false;
	}
	
}

function hasChanged(f, check_sub) {

	var els = f.elements
	var els_len = els.length

	for (var i=0; i<els_len; i++) {
		var el = els[i]
		if (isDirty(el)) {
			//alert(el.name + " is dirty!\ntype: " + el.type)
			return true
		}
		if (check_sub && isDirtySub(el)) {
			//alert(el.name + " is dirty sub!\ntype: " + el.type)
			return true
		}	
	}

	return false
}

function isDirty(el) {
	// If hidden
	if ("hidden" == el.type) {
		// Create regular expression matching linefeed character (LF)
		var re = new RegExp(String.fromCharCode(10), "g")
		// Remove LF characters that the browser adds to a hidden element's value
		// when it contains carriage return (CR) characters
		var val = el.value.replace(re, "")
		var def_val = el.defaultValue
		
		return (def_val != val)
	}
	// If text or textarea
	if (/text/.test(el.type)) {
		return (el.defaultValue != el.value)
	}
	// If checkbox or radio
	if (/checkbox|radio/.test(el.type)) {
		return (el.defaultChecked != el.checked)
	}
	// If select-one or select-multiple
	if (/select/.test(el.type)) {
		var opts = el.options
		var opts_len = opts.length
		for (var i=0; i<opts_len; i++) {
			var opt = opts[i]
			if (opt.defaultSelected != opt.selected) {
				//alert(opt.value + "\ndefaultSelected: " + opt.defaultSelected + "\nselected: " + opt.selected)
				if (opt.selected) {
					// Check if there ever was a defaultSelected
					var has_default = false
					var count = 0
					while ((count < opts_len) && !has_default) {
						has_default = opts[count++].defaultSelected
					}
					// If this is a "default option"
					if ((opt.value == "") || (opt.value == "-1")) {
						// If there was no defaultSelected, nothing has changed 
						return has_default
					}
					else {
						return true
					}
				}
				return true
			}
		}
	}

	return false
}

function isDirtySub(el) {
	if (el.type == "hidden") {
		if (el.name.indexOf("__method") != -1) {   // /S+__method$/.test(el.name)) {
			return (hasValue(el) && /appended|deleted|updated/i.test(el.value))
		}
	}

	return false
}

function displayProgressWindow() {

	if (document.getElementById("UpdateProgress")) {

		var el = document.getElementById("UpdateProgress");
		var w = document.body.clientWidth;
		var sh = window.document.body.scrollTop;
		var h = document.body.clientHeight;

        //progressTable.style.left = document.documentElement.clientWidth/2-progressTable.offsetWidth/2;
        //progressTable.style.top = document.documentElement.clientHeight/2-progressTable.offsetHeight+document.documentElement.scrollTop;

		window.focus();
		el.style.left = w/2 - 60 + "px";
		el.style.top = sh + h/2 - 100 + "px";
		el.style.display="block";		
	}
}

function hideProgressWindow() {
	if (document.getElementById("progresswindow")) {
		var el = document.getElementById("progresswindow");
		var w = document.body.clientWidth;
		var sh = window.document.body.scrollTop;
		var h = document.body.clientHeight;
//		window.focus();
		el.style.display="none";


	}
}

function openWindow2(win_url, win_name, win_features) {
	var win = window.popup_win
	if (win && !win.closed) {
		win.close()
	}
	window.setTimeout("window.popup_win = window.open('" + win_url + "', '" + win_name + "', '" + win_features + "'); window.popup_win.focus()", 100)
	return false
}

function toggleSection(strSectionName){

	if(document.getElementById) {

		var divEdit = document.getElementById("div_edit_" + strSectionName);
		var divStatic= document.getElementById("div_static_" + strSectionName);
		
		
        if (divEdit != null)
        {
		    if(divEdit.style.display == "none"){
			    divEdit.style.display = "block"
			    divStatic.style.display = "none"
		    }
		    else {
			    divEdit.style.display = "none"
			    divStatic.style.display = "block"

		    }
		}
		else
		{
		    var imgEl = document.getElementById("img_" + strSectionName);
		    if(divStatic.style.display == "block"){
			    divStatic.style.display = "none"
			    if (imgEl) imgEl.src = "commoninclude/images/expand.gif";
		    }
		    else {
			    divStatic.style.display = "block"
			    if (imgEl) imgEl.src = "commoninclude/images/collapse.gif";
			}
		}
	}
}

function toggleSectionEx(strSectionName){

	if(document.getElementById) {

		var div = document.getElementById("div_" + strSectionName);
		var imgEl = document.getElementById("img_" + strSectionName);

		if(div.style.display == "none"){
			div.style.display = "block"
			if (imgEl) imgEl.src = "img_top/collapse.gif";
		}
		else {
			div.style.display = "none"
			if (imgEl) imgEl.src = "img_top/expand.gif";

		}
	}
}
function HideNoEntrySuiteableText(strSectionName){

	if(document.getElementById) {
		var divStatic= document.getElementById("div_static_" + strSectionName);
		
		
		divStatic.style.display = "none"
	    
		
	}
}
function ShowNoEntrySuiteableText(strSectionName){

	if(document.getElementById) {
		var divStatic= document.getElementById("div_static_" + strSectionName);
		
		
		divStatic.style.display = "block"
	    
		
	}
}