function clearField(obj) {
	if (obj.defaultValue==obj.value) obj.value = '';
}

function apostille(){
	var text = '';
	text += '<p>\n';
	text += 'Si a usted no le es posible presentarse personalmente en la oficinas del Consulado, debe dirigirse a un Notario P&uacute;blico de su localidad, a fin de autenticar su firma. Luego debe presentar el documento firmado por el Notario en la Oficina de Legalizaciones del Deparment of Foreing Affairs & Trade en su ciudad, solicitando le coloquen al documento el sello de la Apostilla, <span id="red">&quot;The Apostille&quot;</span>.\n';
	text += '</p>\n';
	text += '<p id="red">\n';
	text += 'Con el sello de la Apostilla el documento tiene validez legal en Colombia, NO tiene que presentarlo al Consulado.\n';
	text += '</p>\n';
	text += '<ul>\n';
	text += '<li>\n';
	text += 'La informaci&oacute;n sobre Notarias en Australia, la encuentra en la p&aacute;gina <a href="http://www.notarylocator.com.au" target="_blank">www.notarylocator.com.au</a>.\n';
	text += '</li>\n';
	text += '<li>\n';
	text += 'La informaci&oacute;n sobre el Department of Foreign Affairs &amp; Trade, las encuentra en la p&aacute;gina <a href="http://www.dfat.gov.au" target="_blank">www.dfat.gov.au</a> link &quot;Contacts Us&quot; click &quot;Austalian State and Territory Offices&quot;.\n';
	text += '</li>\n';
	text += '</ul>\n';
	text += '<p>\n';
	text += '<strong>Residentes en Nueva Zelanda:</strong>\n';
	text += '</p>\n';
	text += '<p>\n';
	text += 'Dirigirse a Authentications Officer:\n';
	text += '</p>\n';
	text += '<ul>\n';
	text += '<li>\n';
	text += 'Email: \n';
	text += '<a href="mailto:authentication@ministers.govt.nz"> authentication@ministers.govt.nz\n';
	text += '</a>\n';
	text += '</li>\n';
	text += '<li>\n';
	text += 'Website: \n';
	text += '<a href="http://www.dia.govt.nz/diawebsite.nsf/wpg_URL/Services-Document-Authentication-Index?OpenDocument" target="_blank">Document Authentication</a> page on Department of Internal Affairs website\n';
	text += '<a href="http://www.dia.govt.nz" target="_blank">\n';
	text += 'www.dia.govt.nz</a> (on the DIA website - you can use the search word authentication).\n';
	text += '</li>\n';
	text += '</ul>\n';
	text += '<p>\n';
	text += 'Luego el documento debe presentarse ante el Department of Foreign Affairs para obtener el sello de la Apostilla, <span id="red">&quot;The Apostille&quot;</span>.\n';
	text += '</p>\n';

	return text;
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;  
	} 
	else {  
		window.onload = function() { 
			if (oldonload) { 
				oldonload(); 
			} 
			func(); 
		} 
	}
}

function limitText(limitField, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} 
}
