// JavaScript Document
$(document).ready(function() {
	blurLinks();
});



//empty input boxes
function emptyFormFields(el,val) {
if (el.value == val ) {
el.value = '';
} 
}

function fillFormFields(el,val) {
if (el.value == '' ) {
el.value = val;
}
}

function changeToTypePass(el, val){
emptyFormFields(el,val);
el.type = 'password';
}
function changeToTypeText(el, val){
if (el.value == ''){
fillFormFields(el,val);
el.type = 'text';
}
}
//\empty input boxes


function blurLinks() {
	links = document.getElementsByTagName("a");
	for(i=0; i<links.length; i++) {
		links[i].onfocus = unblur;
	}
	inputs = document.getElementsByTagName("input");
	for(i=0; i<inputs.length; i++) {
		if (inputs[i].type == 'button' || inputs[i].type == 'submit') {
			inputs[i].onfocus = unblur;
		}
	}
}

function unblur() {
	this.blur();
}

function popUpPrint(URL) {
	window.open( URL, "myWindow", "status = 1, height = 600, width = 960, toolbar=no, scrollbars=yes, menubar=no, resizable = yes" )	
}