if(parent.frames.length > 0) 
{
    parent.location.href = location.href;
}

function rp(p)
{
    window.location = p;
}

function nw(p)
{
    window.open(p);
}

function swClass(id, classname, action)
{
    if(action == 1) {
    	Element.addClassName(id, classname);
    }
    else {
   		Element.removeClassName(id, classname);
   	}
}

function highLiteCode(id)
{
    var f = document.getElementById(id);
    f.select();
}

function textCounter(field,cntfield,maxlimit) 
{ 
	if (field.value.length > maxlimit) { 
		field.value = field.value.substring(0, maxlimit); 
	} 
	else { 
		cntfield.value = maxlimit - field.value.length; 
	}
}



/*  sIFR 2.0.1
Copyright 2004 - 2005 Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben
This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/
