function show_protv() {
	var msgw, msgh, bordercolor, cell, the_position, message, bttnDiv, bttn;
	msgw = 440;//Width
	msgh = 410;//Height
	titleheight = 25 //title Height
	bordercolor = "#336699";//border color
	titlecolor = "#99CCFF";//title color
	bttnClassName = "form-submit-bttn";

	var sWidth,sHeight;
	sWidth = (screen.width > document.body.offsetWidth?screen.width + 50:document.body.offsetWidth + 50);
	sHeight = (screen.height > document.body.offsetHeight?screen.height + 50:document.body.offsetHeight + 50);

	bgObj = cE("div");
	sA(bgObj, "id", "bgDiv");
	sS(bgObj, "position", "absolute");
	sS(bgObj, "top", "0"); 
	sS(bgObj, "background", "#D0D0D0"); 
	sS(bgObj, "filter", "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=75,finishOpacity=75)"); 
	sS(bgObj, "opacity", "0.8"); 
	sS(bgObj, "left", "0"); 
	sS(bgObj, "width", sWidth + "px"); 
	sS(bgObj, "height", sHeight + "px"); 
	sS(bgObj, "zIndex", "100"); 
	document.body.appendChild(bgObj);
	
	msgObj = cE("div");
	sA(msgObj, "id", "msgDiv");
	sA(msgObj, "align", "center");
	sS(msgObj, "position", "absolute");
	sS(msgObj, "left", "50%");
	sS(msgObj, "top", "50%");
	sS(msgObj, "font", "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif");
	sS(msgObj, "marginLeft", "-200px");
	sS(msgObj, "marginTop", -200 + document.documentElement.scrollTop+"px");
	sS(msgObj, "width", msgw + "px");
	sS(msgObj, "height", msgh + "px");
	sS(msgObj, "textAlign", "left");
	sS(msgObj, "background", "#D0D0D0");
	sS(msgObj, "zIndex", "101");
	document.body.appendChild(msgObj);

	cell = cE_Div("cellC", "absolute", "0px", "0px", msgw + "px", msgh + "px", "f-content", "");
	sS(cell, "border", "3px solid #FF0000");
	sS(cell, "background", "#D0D0D0");
	aC($("msgDiv"), cell);
	
	sS(cell, "textAlign", "center");
	
	cell.innerHTML = "<table class='header_box' style='width: 100%; margin-bottom: 4px;s'><tr><td style='vertical-align: middle; text-align: left; font-family: verdana; font-size: 14px; font-weight: bold; color: #FFFFFF;'>Romani, pe vasele de croaziera.</td><td style='width: 30px;'><a href='http://www.protv.ro' target='_blank'><img src='/ui/img/protv.png' style='border: 0px; margin: 4px;'/></a></td></tr></table>";
	cell.innerHTML += "<div id='video_player'>";
	cell.innerHTML += "<embed id='VideoPlayer' height='320' width='400' flashvars='file=http://web3.protv.ro/assets/protv/shows/romania-te-iubesc/romania-te-iubesc-2-noiembrie/romani-pe-vapor.flv&image=http://web3.protv.ro/assets/protv/shows/romania-te-iubesc/romania-te-iubesc-2-noiembrie/vapor.jpg&channelIdentifier=Wb3c1suIAiBO52dkFjszSw%3D%3D' allownetworking='all' allowscriptaccess='always' allowfullscreen='true' quality='best' bgcolor='#000000' name='VideoPlayer' src='/ui/img/player.swf' type='application/x-shockwave-flash'/>";
	cell.innerHTML += "</div>";
	
	bttn = cE("input");
	bttn.type = "button";
	bttn.className = "button";
	bttn.value = "close";
	sS(bttn, "margin", "5px");
	bttn.onclick = function() {
		document.body.removeChild($("msgDiv"));
		document.body.removeChild($("bgDiv"));
	}
	aC(cell, bttn);
}

function show_video(m_filename, objSender) {
	var msgw, msgh, bordercolor, cell, the_position, message, bttnDiv, bttn;
	msgw = 440;//Width
	msgh = 410;//Height
	titleheight = 25 //title Height
	bordercolor = "#336699";//border color
	titlecolor = "#99CCFF";//title color
	bttnClassName = "form-submit-bttn";

	var sWidth,sHeight;
	sWidth = (screen.width > document.body.offsetWidth?screen.width + 50:document.body.offsetWidth + 50);
	sHeight = (screen.height > document.body.offsetHeight?screen.height + 50:document.body.offsetHeight + 50);

	bgObj = cE("div");
	sA(bgObj, "id", "bgDiv");
	sS(bgObj, "position", "absolute");
	sS(bgObj, "top", "0"); 
	sS(bgObj, "background", "#D0D0D0"); 
	sS(bgObj, "filter", "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=75,finishOpacity=75)"); 
	sS(bgObj, "opacity", "0.8"); 
	sS(bgObj, "left", "0"); 
	sS(bgObj, "width", sWidth + "px"); 
	sS(bgObj, "height", sHeight + "px"); 
	sS(bgObj, "zIndex", "100"); 
	document.body.appendChild(bgObj);
	
	msgObj = cE("div");
	sA(msgObj, "id", "msgDiv");
	sA(msgObj, "align", "center");
	sS(msgObj, "position", "absolute");
	sS(msgObj, "left", "50%");
	sS(msgObj, "top", "50%");
	sS(msgObj, "font", "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif");
	sS(msgObj, "marginLeft", "-200px");
	sS(msgObj, "marginTop", -200 + document.documentElement.scrollTop+"px");
	sS(msgObj, "width", msgw + "px");
	sS(msgObj, "height", msgh + "px");
	sS(msgObj, "textAlign", "left");
	sS(msgObj, "background", "#D0D0D0");
	sS(msgObj, "zIndex", "101");
	document.body.appendChild(msgObj);

	cell = cE_Div("cellC", "absolute", "0px", "0px", msgw + "px", msgh + "px", "f-content", "");
	sS(cell, "border", "3px solid #FF0000");
	sS(cell, "background", "#D0D0D0");
	aC($("msgDiv"), cell);
	
	sS(cell, "textAlign", "center");
	
	cell.innerHTML = "<table class='header_box' style='width: 100%; margin-bottom: 4px;'><tr><td style='vertical-align: middle; text-align: center; font-family: verdana; font-size: 14px; font-weight: bold; color: #FFFFFF;'>" + objSender.getElementsByTagName("span")[0].innerHTML + "</td></tr></table>";
	cell.innerHTML += "<div id='video_player'>";
	cell.innerHTML += '<embed id="VideoPlayer" height="320" width="400" flashvars="file=' + m_filename + '&autoPlay=true" autoplay="true" allownetworking="all" allowscriptaccess="none" allowfullscreen="true" quality="high" bgcolor="#000000" name="VideoPlayer" src="/ui/img/player.swf" type="application/x-shockwave-flash" wmode="transparent"/>';
	cell.innerHTML += "</div>";
	
	bttn = cE("input");
	bttn.type = "button";
	bttn.className = "button";
	bttn.value = "close";
	sS(bttn, "margin", "5px");
	bttn.onclick = function() {
		document.body.removeChild($("msgDiv"));
		document.body.removeChild($("bgDiv"));
	}
	aC(cell, bttn);
}

function show_hide_account_details(obj) {
	if (obj.style.display == "block") {
		obj.style.display = "none";
	}
	else {
		obj.style.display = "block";
	}
}

function getEditorContent(instanceName)
{
	editor_frame = document.getElementById(instanceName+'___Frame');
	editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea');
	if (editor_source!=null)
	{
		return editor_source.contentWindow.document.body.innerHTML;
	}
	else
	{
		return '';
	}
}

function setEditorContent(instanceName,newContent)
{
	editor_frame = document.getElementById(instanceName+'___Frame');
	editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea');
	if (editor_source!=null)
	{
		editor_source.contentWindow.document.body.innerHTML = newContent;
	}
	else
	{
		return '';
	}
}

function previewCentralAd()
{
	var oEditor = FCKeditorAPI.GetInstance('banner') ;
	$("previewBanner").innerHTML = oEditor.GetHTML();
}

function checkRegisterForm()
{
	var theForm = $("frmRegister");

	if( theForm.firstname.value == "" )
	{
		alert( "Completati campul Prenume !" );
		return false;
	}
	
	if( theForm.lastname.value == "" )
	{
		alert( "Completati campul Nume !" );
		return false;
	}
	
	if( theForm.birthdate.value == "" )
	{
		alert( "Completati campul Data de nastere !" );
		return false;
	}
	
	if( theForm.email.value == "" )
	{
		alert( "Completati campul Email !" );
		return false;
	}
	
	if( theForm.username.value == "" )
	{
		alert( "Completati campul Nume de utilizator !" );
		return false;
	}
	
	if( theForm.password.value == "" )
	{
		alert( "Completati campul Parola cont !" );
		return false;
	}
	
	if( theForm.confirm_password.value == "" )
	{
		alert( "Completati campul Introdu inca odata parola !" );
		return false;
	}

	if( theForm.password.value != theForm.confirm_password.value )
	{
		alert( "Parola este diferita de confirmarea parolei !" );
		return false;
	}

	return true;
}

function open_popup_tickets()
{
    window.open( "ui/tpl/promos/bilet_marinar_popup_" + lang + ".html", "_blank", "width=550,height=700,menubar=no,toolbar=no,scrollbars=yes" );
}

function open_popup_footer_info(source) {
	window.open(source + "_" + lang + ".html", "_blank", "width=900,height=700,menubar=no,toolbar=no,scrollbars=yes");
}

function show_submenu(m_submeniu, m_lang, objSender) {
	var submenu;
	
	var shipping_industry_submenu_ro = new Array(
										"full_service_provider_for_shipping_industry#services@SERVICII pentru domeniul Constructiilor Civile, Industriale si Navale",
										"full_service_provider_for_shipping_industry#overview@Job Selection - Prezentare generala",
										"full_service_provider_for_shipping_industry#photo_gallery@Galerie foto",
										"full_service_provider_for_shipping_industry#contact@Contact"
									);
	
	var shipping_industry_submenu_de = new Array(
										"full_service_provider_for_shipping_industry#services@Dienstleistungen f&uuml;r Zivile, Industrielle und Marinebauten",
										"full_service_provider_for_shipping_industry#overview@Job Selection - &Uuml;berblick",
										"full_service_provider_for_shipping_industry#photo_gallery@Fotogallerie",
										"full_service_provider_for_shipping_industry#contact@Kontakt"
									);
	
	var shipping_industry_submenu_en = new Array(
										"full_service_provider_for_shipping_industry#servives@SERVICES for Civil, Industrial and Shipping Engineering",
										"full_service_provider_for_shipping_industry#overview@Job Selection - Overview",
										"full_service_provider_for_shipping_industry#photo_gallery@Photo gallery",
										"full_service_provider_for_shipping_industry#contact@Contact"
									);
	
	var ship_submenu_ro = new Array(
							"about@Despre noi",
							"partners@Parteneri",
							"info@Info candida&#x163;i vase croazier&#x103;",
							"permanent_offers@Joburi pe vase de croazier&#x103;",
							"cv@Aplic&#x103;",
							"rehires@Re-angaja&#x163;i",
							"faq@&#206;ntreb&#x103;ri &#x015F;i r&#x103;spunsuri",
							"agencies@Agen&#x163;ii CTN",
							"video@Video"
						);
	
	var ship_submenu_de = new Array(
							"about@&Uuml;ber uns",
							"partners@Partner",
							"info@Info Kandidaten f&#0252;r Kreuzfahrtschiffe",
							"permanent_offers@Arbeitsstellen auf Kreuzfahrtschiffen",
							"cv@Bewirb Dich",
							"rehires@Wiederangestellte",
							"faq@Fragen und Antworten",
							"agencies@CTN Agenturen",
							"video@Video"
						);
	
	var ship_submenu_en = new Array(
							"about@About us",
							"partners@Partners",
							"info@Info candidates-cruise ships jobs",
							"permanent_offers@Cruise ships jobs",
							"cv@Apply",
							"rehires@Re-hires",
							"faq@F.A.Q.",
							"agencies@CTN Agencies network",
							"video@Video"
						);
						
	var horeca_submenu_ro = new Array(
							"horeca_jobs@Locuri de munca",
							"horeca_training@Training",
							"horeca_consultance@Consultanta"
						);
						
	var horeca_submenu_de = new Array(
							"horeca_jobs@Arbeitsstellen",
							"horeca_training@Training",
							"horeca_consultance@Beratung"
						);
						
	var horeca_submenu_en = new Array(
							"horeca_jobs@Jobs",
							"horeca_training@Training",
							"horeca_consultance@Consultance"
						);
	
	if (m_lang == "ro") {
		switch(m_submeniu) {
			case "ship":
				submenu = ship_submenu_ro;
			break;
			case "horeca":
				submenu = horeca_submenu_ro;
			break;
			case "service_provider":
				submenu = service_provider_submenu_ro;
			break;
			case "shipping_industry":
				submenu = shipping_industry_submenu_ro;
			break;
		}		
	}
	if (m_lang == "de") {
		switch(m_submeniu) {
			case "ship":
				submenu = ship_submenu_de;
			break;
			case "horeca":
				submenu = horeca_submenu_de;
			break;
			case "service_provider":
				submenu = service_provider_submenu_de;
			break;
			case "shipping_industry":
				submenu = shipping_industry_submenu_de;
			break;
		}		
	}
	if (m_lang == "en") {
		switch(m_submeniu) {
			case "ship":
				submenu = ship_submenu_en;
			break;
			case "horeca":
				submenu = horeca_submenu_en;
			break;
			case "service_provider":
				submenu = service_provider_submenu_en;
			break;
			case "shipping_industry":
				submenu = shipping_industry_submenu_en;
			break;
		}		
	}
	
	var subMenuWin, m_table, m_tbody, m_row, m_cell, m_link;
	var objPos = findPos(objSender);
	subMenuWin = cE("div");
	sA(subMenuWin, "id", "subMenuWin");
	sS(subMenuWin, "position", "absolute");
	sS(subMenuWin, "left", (objPos[0] * 1) - 1 + "px");
	sS(subMenuWin, "top", objPos[1] * 1 + objSender.offsetHeight * 1 + 1 + "px");
	sS(subMenuWin, "marginLeft", "0px");
	sS(subMenuWin, "marginTop", "0px");
	sS(subMenuWin, "minWidth", "188px");
	sS(subMenuWin, "zIndex", "101");
	document.body.appendChild(subMenuWin);
	
	m_table = cE("table");
	m_table.cellPadding = 0;
	m_table.cellSpacing = 0;
	sS(m_table, "border", "1px solid #FFFFFF");
	m_tbody = cE("tbody");
		m_row = cE("tr");
			// content cell
			m_cell = cE("td");
			sS(m_cell, "minWidth", "188px");
//			sS(m_cell, "height", "150px");
			sS(m_cell, "backgroundColor", "#BF2F39");
			aC(m_row, m_cell);
			
			var o_table, o_tbody, o_row, o_cell;
			o_table = cE("table");
			o_table.cellPadding = 2;
			sS(o_table, "width", "100%");
			o_tbody = cE("tbody");
				for (i = 0; i < submenu.length; i++) {
					o_row = cE("tr");
					o_row.className = "row-submenu";
						o_cell = cE("td");
						o_cell.className = "submenu";
						o_cell.noWrap = "nowrap";
						m_link = cE_A("", "submenu", "/" + submenu[i].split("@")[0], submenu[i].split("@")[1]);
						sS(m_link, "display", "block");
						aC(o_cell, m_link);
						aC(o_row, o_cell);
					aC(o_tbody, o_row);
				}
			aC(o_table, o_tbody);
			aC(m_cell, o_table);
		aC(m_tbody, m_row);
	aC(m_table, m_tbody);
	aC(subMenuWin, m_table);
}

function hide_submenu() {
	if ($("subMenuWin")) {
		document.body.removeChild($("subMenuWin"));
	}
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
		return [curleft,curtop];
	}
}  

function set_video_file(m_filename, objSender) {
	$("video_player").innerHTML = '<div id="movie_label" style="font-family: verdana; font-size: 16px; color: #B92E39; font-weight: bold;"></div><br/><embed id="VideoPlayer" height="320" width="400" flashvars="file=' + m_filename + '" allownetworking="all" allowscriptaccess="always" allowfullscreen="true" quality="best" bgcolor="#000000" name="VideoPlayer" src="/ui/img/player.swf" type="application/x-shockwave-flash" wmode="transparent"/>';
	$("movie_label").innerHTML = objSender.getElementsByTagName("span")[0].innerHTML;
	document.documentElement.scrollTop = "0px";
}

function show_gallery(objSender, gallery_name) {
	var msgw, msgh;
	msgw = 950;//Width
	msgh = 700;//Height

	var sWidth,sHeight;
	sWidth = (screen.width > document.body.offsetWidth?screen.width + 50:document.body.offsetWidth + 50);
	sHeight = (screen.height > document.body.offsetHeight?screen.height + 50:document.body.offsetHeight + 50);

	var bgObj = cE("div");
	sA(bgObj, "id", "bgDiv");
	sS(bgObj, "position", "absolute");
	sS(bgObj, "top", "0"); 
	sS(bgObj, "background", "#D0D0D0"); 
	sS(bgObj, "filter", "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=75,finishOpacity=75)"); 
	sS(bgObj, "opacity", "0.8"); 
	sS(bgObj, "left", "0"); 
	sS(bgObj, "width", sWidth + "px"); 
	sS(bgObj, "height", sHeight + "px"); 
	sS(bgObj, "zIndex", "100");
	document.body.appendChild(bgObj);
	
	var msgObj = cE("div");
	sA(msgObj, "id", "msgDiv");
	sA(msgObj, "align", "center");
	sS(msgObj, "position", "absolute");
	sS(msgObj, "left", "50%");
	sS(msgObj, "top", "50%");
	sS(msgObj, "font", "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif");
	sS(msgObj, "marginLeft", "-" + (msgw / 2) + "px");
	sS(msgObj, "marginTop", -(msgh / 2) + document.documentElement.scrollTop+"px");
	sS(msgObj, "width", msgw + "px");
	sS(msgObj, "height", msgh + "px");
	sS(msgObj, "textAlign", "left");
	sS(msgObj, "background", "#D0D0D0");
	sS(msgObj, "zIndex", "101");
	sS(msgObj, "border", "5px double #C02E39");
	document.body.appendChild(msgObj);
	
	bgObj.onclick = function() {
		document.body.removeChild($("msgDiv"));
		document.body.removeChild($("bgDiv"));
	}
	
	var m_table, m_tbody, m_row, m_cell, m_img, m_div, i, m_title;
	var m_width, m_height;
	var m_images = new Array;
	
	switch (gallery_name) {
		case "re_fitting":
			for (i = 1; i < 52; i++) {
				m_images.push("x_re_fitting_" + i + ".jpg");
				m_title = "Re-Fitting Public Area onboard photo gallery";
			}
		break;
		case "operating_crew":
			for (i = 1; i < 8; i++) {
				m_images.push("x_operating_crew_" + i + ".jpg");
				m_title = "Providing a full range of Operating Crew for Shipyards photo gallery";
			}
		break;
		case "fiber_glass":
			for (i = 1; i < 22; i++) {
				m_images.push("x_fiber_glass_" + i + ".jpg");
				m_title = "";
			}
		break;
		case "marble_mosaic":
			for (i = 1; i < 6; i++) {
				m_images.push("x_marble_mosaic_" + i + ".jpg");
				m_title = "";
			}
		break;
		case "design_outfitting":
			for (i = 1; i < 42; i++) {
				m_images.push("design_outfitting_" + i + ".jpg");
				m_title = "";
			}
		break;
	}
	
	m_div = cE("div");
	sS(m_div, "width", (msgw - 16) + "px");
	sS(m_div, "textAlign", "center");
	sS(m_div, "padding", "8px");
	sS(m_div, "backgroundColor", "#C02E39");
	sS(m_div, "color", "#FFFFFF");
	sS(m_div, "fontWeight", "bold");
	m_div.innerHTML = "Full Service Provider for Shipping Industry :: Photo Gallery";
	aC($("msgDiv"), m_div);
	
	m_div = cE("div");
	sS(m_div, "width", "100%");
	sS(m_div, "height", "410px");
	sS(m_div, "textAlign", "center");
	sS(m_div, "margin", "10px");
	m_table = cE("table");
	sS(m_table, "margin", "0px auto");
	m_tbody = cE("tbody");
		m_row = m_table.insertRow(-1);
			m_cell = m_row.insertCell(-1);
			sS(m_cell, "verticalAlign", "middle");
			sS(m_cell, "textAlign", "right");
			m_img = cE_I("prev_img", "/ui/img/service_provider/prev.png", "cursor: pointer", "", "");
			m_img.onclick = function() {
				var m_img_name = $("big_img").src;
				m_img_name = m_img_name.substring(m_img_name.lastIndexOf("_") + 1);
				m_img_name = m_img_name.substring(0, m_img_name.indexOf("."));
				if ($("next_img").src.indexOf("next_disabled.png") != -1) {
					$("next_img").src = "/ui/img/service_provider/next.png";
				}
				if (m_img_name > 1) {
					$("big_img").src = $("big_img").src.substring(0, $("big_img").src.lastIndexOf("_") + 1) + (m_img_name - 1) + ".jpg";
				}
				else {
					$("prev_img").src = "/ui/img/service_provider/prev_disabled.png";
				}
				
			}
			aC(m_cell, m_img);
			
			m_cell = m_row.insertCell(-1);
			m_img = cE_I("big_img", objSender.src.replace("/small", "/big"), "border: 2px solid #C02E39;", "", "");
			aC(m_cell, m_img);

			m_cell = m_row.insertCell(-1);
			sS(m_cell, "verticalAlign", "middle");
			m_img = cE_I("next_img", "/ui/img/service_provider/next.png", "cursor: pointer", "", "");
			m_img.onclick = function() {
				var m_img_name = $("big_img").src;
				m_img_name = m_img_name.substring(m_img_name.lastIndexOf("_") + 1);
				m_img_name = m_img_name.substring(0, m_img_name.indexOf("."));
				if ($("prev_img").src.indexOf("prev_disabled.png") != -1) {
					$("prev_img").src = "/ui/img/service_provider/prev.png";
				}
				if (m_img_name < m_images.length) {
//					alert($("big_img").src.substring(0, $("big_img").src.lastIndexOf("_") + 1) + (m_img_name * 1 + 1) + ".jpg");
					$("big_img").src = $("big_img").src.substring(0, $("big_img").src.lastIndexOf("_") + 1) + (m_img_name * 1 + 1) + ".jpg";
				}
				else {
					$("next_img").src = "/ui/img/service_provider/next_disabled.png";
				}
			}
			aC(m_cell, m_img);
	aC(m_table, m_tbody);
		
	aC(m_div, m_table);		
	aC($("msgDiv"), m_div);
	
	m_div = cE("div");
	sS(m_div, "height", "200px");
	sS(m_div, "textAlign", "center");
	sS(m_div, "margin", "10px");
	m_div.style.overflowY = "scroll";
		m_table = cE("table");
		sS(m_table, "width", "100%");
		m_table.cellPadding = 0;
		m_table.cellSpacing = 0;
		m_tbody = cE("tbody");
			m_row = cE("tr");
				m_cell = cE("td");
					for (i = 0; i < m_images.length; i++) {
						m_img = cE_I("", "/ui/img/service_provider/small/" + m_images[i], "margin: 5px; cursor: pointer;", display_image, "this");
						aC(m_cell, m_img);
						if (((i + 1) % 8) == 0) {
							aC(m_row, m_cell);
							aC(m_tbody, m_row);
							m_row = cE("tr");
							m_cell = cE("td");
						}
					}
				aC(m_row, m_cell);
			aC(m_tbody, m_row);
		aC(m_table, m_tbody);
		aC(m_div, m_table);
	aC($("msgDiv"), m_div);

	m_div = cE("div");
	sS(m_div, "width", (msgw - 6) + "px");
	sS(m_div, "textAlign", "center");
	sS(m_div, "padding", "3px");
	sS(m_div, "backgroundColor", "#C02E39");
	sS(m_div, "color", "#FFFFFF");
	sS(m_div, "fontWeight", "bold");
	sS(m_div, "cursor", "pointer");
	m_div.innerHTML = "Close";
	m_div.onclick = function() {
		document.body.removeChild($("msgDiv"));
		document.body.removeChild($("bgDiv"));
	}
	aC($("msgDiv"), m_div);
}

function getImgHeight(imgSrc) {
	var newImg = new Image();
	newImg.src = imgSrc;
	var height = newImg.height;
	return height;
}

function getImgWidth(imgSrc) {
	var newImg = new Image();
	newImg.src = imgSrc;
	var width = newImg.width;
	return width;
}

function display_image(objSender) {
	$("big_img").src = objSender.src.replace("/small", "/big");
}

function check_service_provider_form() {
	var m_name = $("name").value;
	var m_email = $("email").value;
	var m_message = $("message").value;
	
	if (m_name == "") {
		alert("Please enter your name!");
		return false;
	}
	
	if (m_email == "") {
		alert("Please enter your e-mail address!");
		return false;
	}
	
	if (m_message == "") {
		alert("Message field is empty!");
		return false;
	}
	
	return true;
}