/**
 * @author madip
 */
function go(url, windowPosition){
    if (windowPosition == undefined || windowPosition == false) {
        windowPosition = '_parent';
    }
    window.open(url, windowPosition);
    return false;
}

function getfileextension(inputId){
    var filename = inputId;

    if (filename.length == 0) 
        return "";
    var dot = filename.lastIndexOf(".");
    if (dot == -1) 
        return "";
    var extension = filename.substr(dot, filename.length);
    return extension;
}

function checkfileType(inputId, allowedExt){
    var ext = getfileextension(inputId);
    if (ext == allowedExt) 
        return true;
    else 
        return false;
}
function slide(div)
{
	$('#'+div).slideToggle('fast');
}

